Prechádzať zdrojové kódy

fix:解决图片上传后点击还有图片问题

zlong 1 rok pred
rodič
commit
a77af184df

+ 2 - 1
src/pages/carousal/components/CarousalDialog.vue

@@ -97,7 +97,8 @@ watch(
   (newClassify) => {
     carousalData.value = Object.assign({}, newClassify)
     const carousalObj = Object.assign({},newClassify)
-    imgUrl.value.url = carousalObj.imageUrl || ''
+    // imgUrl.value.url = carousalObj.imageUrl || ''
+    imgUrl.value = { url: carousalObj.imageUrl || '' }
   },
   {
     deep: true,