轮播图字段类型判断
This commit is contained in:
1 parent
2b9727224d
commit
a0aeecd584
1 file changed
+2
-2
@@ -47,7 +47,7 @@ const props = withDefaults(defineProps<UploadFileProps>(), {
|
|||||||
borderRadius: "8px",
|
borderRadius: "8px",
|
||||||
})
|
})
|
||||||
|
|
||||||
const imageUrls = defineModel<string>()
|
const imageUrls = defineModel("modelValue", { default: "" })
|
||||||
|
|
||||||
const imageBaseUrl = import.meta.env.VITE_IMAGE_BASE_PATH
|
const imageBaseUrl = import.meta.env.VITE_IMAGE_BASE_PATH
|
||||||
const dialogVisible = ref(false)
|
const dialogVisible = ref(false)
|
||||||
@@ -162,7 +162,7 @@ const self_disabled = computed(() => {
|
|||||||
watch(
|
watch(
|
||||||
() => imageUrls.value,
|
() => imageUrls.value,
|
||||||
(newValue) => {
|
(newValue) => {
|
||||||
if (!newValue) {
|
if (!newValue || Object.prototype.toString.call(newValue) !== "[object String]") {
|
||||||
fileList.value = []
|
fileList.value = []
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user