|
|
@@ -83,9 +83,9 @@ export default {
|
|
|
store.commit('setLoginInfo', { ...subRes.data.admin, ...subRes.data })
|
|
|
this.skCustomId = subRes.data.skCustomId
|
|
|
this.setUserShopAll()
|
|
|
- if (this.init) {
|
|
|
- this.init()
|
|
|
- }
|
|
|
+
|
|
|
+ this.init()
|
|
|
+
|
|
|
})
|
|
|
}
|
|
|
// #endif
|
|
|
@@ -111,21 +111,15 @@ export default {
|
|
|
this.listenPDAkd()
|
|
|
|
|
|
this.setUserShopAll()
|
|
|
- if (this.init) {
|
|
|
- this.init()
|
|
|
- }
|
|
|
+
|
|
|
+ this.init()
|
|
|
+
|
|
|
})
|
|
|
}
|
|
|
// #endif
|
|
|
|
|
|
- }
|
|
|
-
|
|
|
- },
|
|
|
- onShow(){
|
|
|
- if (isLogin()&&!this.$util.isEmpty(this.getLoginInfo)) {
|
|
|
- if (this.init) {
|
|
|
- this.init()
|
|
|
- }
|
|
|
+ }else{
|
|
|
+ this.init()
|
|
|
}
|
|
|
},
|
|
|
methods: {
|