소스 검색

no message

zhujindu 1 년 전
부모
커밋
bb2e25af89
1개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  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);