Browse Source

完善首页的跳转

wangning 5 years ago
parent
commit
e7aaca08f5
2 changed files with 2 additions and 2 deletions
  1. 0 2
      ghsApp/src/admin/home/result.vue
  2. 2 0
      ghsApp/src/mixins/globalMixins.js

+ 0 - 2
ghsApp/src/admin/home/result.vue

@@ -32,9 +32,7 @@ export default {
 	methods: {
 	methods: {
     loginSys(){
     loginSys(){
       uni.removeStorageSync('OPEN_SHOP_ID')
       uni.removeStorageSync('OPEN_SHOP_ID')
-      uni.removeStorageSync('HOME_REFRESH')
       uni.removeStorageSync('HOME_STATUS_STROAGE_SHOW')
       uni.removeStorageSync('HOME_STATUS_STROAGE_SHOW')
-      this.$store.commit("setLoginInfo", {});
       this.$util.pageTo({
       this.$util.pageTo({
         url: '/admin/home/workbench',
         url: '/admin/home/workbench',
         type: 3
         type: 3

+ 2 - 0
ghsApp/src/mixins/globalMixins.js

@@ -62,6 +62,8 @@ export default {
             uni.removeStorageSync('HOME_REFRESH')
             uni.removeStorageSync('HOME_REFRESH')
             uni.setStorageSync('OPEN_SHOP_ID', res.data.admin.openShop)
             uni.setStorageSync('OPEN_SHOP_ID', res.data.admin.openShop)
           } else {
           } else {
+            this.AUTHORITY_SHOW = false
+            uni.removeStorageSync('HOME_REFRESH')
             uni.showTabBar()
             uni.showTabBar()
           }
           }
 				}
 				}