Browse Source

no message

zhujindu 1 năm trước cách đây
mục cha
commit
bb2e25af89
1 tập tin đã thay đổi với 7 bổ sung1 xóa
  1. 7 1
      src/views/storeManagement/index.vue

+ 7 - 1
src/views/storeManagement/index.vue

@@ -861,7 +861,13 @@ export default {
     },
     onClickLeft() {
       localStorage.setItem('tabVal', '1');
-      this.$router.push('/My/index');
+      let storeStatus = localStorage.getItem('storeStatus');
+      if (storeStatus) {
+        localStorage.removeItem('storeStatus');
+        this.$router.go(-1);
+      } else {
+        this.$router.push('/My/index');
+      }
     },
     onSearch() {
       window.scrollTo(0, 0);