blocked sending SMS

This commit is contained in:
2026-06-26 18:29:24 +03:30
parent d7ca6706fb
commit 61c948b6c6
5 changed files with 33 additions and 17 deletions
+3 -8
View File
@@ -42,6 +42,7 @@ import { onMounted, ref, watch, computed } from 'vue'
import { LoadingOutlined } from '@ant-design/icons-vue'
import { message } from 'ant-design-vue'
import { getToken } from '@/utils'
import { fixFileCapture } from '@/utils/fixFileCapture'
const loading = ref<boolean>(false)
const percent = ref<number>(0)
@@ -71,7 +72,7 @@ function handelChange({ file, fileList }) {
if (Object.hasOwn(file, 'percent')) {
percent.value = Math.floor(file.percent)
}
fixUpload()
fixFileCapture()
if (file.status === 'uploading') {
loading.value = true
@@ -93,14 +94,8 @@ function handelChange({ file, fileList }) {
}
}
function fixUpload() {
document.querySelectorAll('.fix-capture input').forEach((item) => {
item.removeAttribute('capture')
})
}
onMounted(() => {
fixUpload()
fixFileCapture()
})
function deleteAvatar(e) {