wangning 5 лет назад
Родитель
Сommit
c8a12e1f1d

+ 4 - 2
hdApp/src/admin/home/result.vue

@@ -30,10 +30,12 @@ export default {
   },
 	methods: {
     loginSys(){
-      uni.setStorageSync('OPEN_SHOP_ID', '3')
+      uni.removeStorageSync('OPEN_SHOP_ID')
+      uni.removeStorageSync('SHOP_ADMIN_STROAGE_SHOW')
+      this.$store.commit("setLoginInfo", {});
       this.$util.pageTo({
         url: '/admin/home/workbench',
-        type: 4
+        type: 3
       })
     },
     openInform(){

+ 3 - 1
hdApp/src/mixins/globalMixins.js

@@ -23,7 +23,7 @@ export default {
 	},
 	computed: {
 		...mapGetters({ loginInfo: "getLoginInfo" }),
-    ...mapGetters(["getLoginInfo", 'userInfo'])
+    ...mapGetters(["getLoginInfo"])
 	},
 	// 页面生命周期才触发
   onLoad: function (option) {
@@ -62,6 +62,8 @@ export default {
             uni.hideTabBar()
             uni.removeStorageSync('SHOP_ADMIN_STROAGE_SHOW')
             uni.setStorageSync('OPEN_SHOP_ID', res.data.admin.openShop)
+          } else {
+            uni.showTabBar()
           }
         }
         getUser(true)

+ 0 - 1
hdApp/src/pagesClient/official/result.vue

@@ -26,7 +26,6 @@ export default {
         close() {
           uni.reLaunch({url: '/admin/home/workbench'})
           this.$store.commit("setLoginInfo", {});
-          uni.setStorageSync('OPEN_SHOP_ID', '2')
         }
     }
 };