gcz 4 年 前
コミット
153e25fb80

+ 0 - 1
src/views/layout/components/Navbar.vue

@@ -49,7 +49,6 @@ export default {
   },
   created(){
     this.username = Cookies.get('username');
-    console.log('1111',this.username);
   },
   methods: {
     toggleSideBar() {

+ 6 - 1
src/views/pms/brand/components/BrandDetail.vue

@@ -108,7 +108,9 @@
                     type: 'success',
                     duration:1000
                   });
-                  this.$router.back();
+                  setTimeout(() =>{
+                    this.$router.back();
+                  },1000);
                 });
               } else {
                 createBrand(this.brand).then(response => {
@@ -119,6 +121,9 @@
                     type: 'success',
                     duration:1000
                   });
+                  setTimeout(() =>{
+                    this.$router.back();
+                  },1000);
                 });
               }
             });

+ 6 - 1
src/views/pms/productCate/components/ProductCateDetail.vue

@@ -184,7 +184,9 @@
                     type: 'success',
                     duration: 1000
                   });
-                  this.$router.back();
+                  setTimeout(() =>{
+                    this.$router.back();
+                  },1000);
                 });
               } else {
                 this.productCate.productAttributeIdList = this.getProductAttributeIdList();
@@ -196,6 +198,9 @@
                     type: 'success',
                     duration: 1000
                   });
+                  setTimeout(() =>{
+                    this.$router.back();
+                  },1000);
                 });
               }
             });