blocked sending SMS
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user