Funny преди 3 години
родител
ревизия
f2eec77cd8
променени са 2 файла, в които са добавени 21 реда и са изтрити 20 реда
  1. 1 1
      src/components/manualCreate.vue
  2. 20 19
      src/views/home.vue

+ 1 - 1
src/components/manualCreate.vue

@@ -245,7 +245,7 @@ export default {
         }
         this.getData();
       },
-      // immediaty: true,
+      immediate: true,
     },
   },
   // 生命周期 - 创建完成(可以访问当前this实例)

+ 20 - 19
src/views/home.vue

@@ -51,25 +51,26 @@ export default {
     bus.$emit("openGetSoundMsg");
     this.getProductList();
     let memberType = this.$store.state.userInfo.memberType;
-    if (memberType === 1) {
-      this.$confirm("您当前还不是商户,请先申请成为商户!", "提示", {
-        confirmButtonText: "成为商户",
-        cancelButtonText: "取消",
-        type: "warning",
-      })
-        .then(() => {
-          this.$message({
-            type: "success",
-            message: "删除成功!",
-          });
-        })
-        .catch(() => {
-          this.$message({
-            type: "info",
-            message: "已取消删除",
-          });
-        });
-    }
+    // if (memberType === 1) {
+    //   this.$confirm("您当前还不是商户,请先申请成为商户!", "提示", {
+    //     confirmButtonText: "成为商户",
+    //     cancelButtonText: "取消",
+    //     type: "warning",
+    //     center: true,
+    //   })
+    //     .then(() => {
+    //       this.$message({
+    //         type: "success",
+    //         message: "删除成功!",
+    //       });
+    //     })
+    //     .catch(() => {
+    //       this.$message({
+    //         type: "info",
+    //         message: "已取消删除",
+    //       });
+    //     });
+    // }
   },
 
   methods: {