Jelajahi Sumber

improve: 分类展示

From-wh 2 tahun lalu
induk
melakukan
0022d078e5
1 mengubah file dengan 3 tambahan dan 4 penghapusan
  1. 3 4
      template/admin/src/components/uploadImg/index.vue

+ 3 - 4
template/admin/src/components/uploadImg/index.vue

@@ -1,5 +1,5 @@
 <template>
 <template>
-  <div v-if="uploadModal">
+  <div>
     <el-dialog
     <el-dialog
       title="上传图片"
       title="上传图片"
       append-to-body
       append-to-body
@@ -154,10 +154,9 @@ export default {
     },
     },
   },
   },
   watch: {
   watch: {
-    categoryId: {
+    uploadModal: {
       handler(newVal) {
       handler(newVal) {
-        this.ruleForm.region = newVal;
-        console.log('diaole ');
+        if (newVal) this.ruleForm.region = this.categoryId;
       },
       },
       immediate: true,
       immediate: true,
     },
     },