@@ -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()
-
- },
- onShow(){
- if (isLogin()&&!this.$util.isEmpty(this.getLoginInfo)) {
+ }else{
},
methods: {
@@ -119,8 +119,6 @@ export default {
getCategory()
getUsage()
- onLoad: function () {
onShow () {
let tabIndex = uni.getStorageSync("switchTabQuery") || null;
if (tabIndex) {
@@ -53,9 +53,9 @@ export default {
getShopInfo(true)
}else{
@@ -76,9 +76,7 @@ export default {
that.setUserShopAll()
- if (that.init) {
- that.init()
+ that.init()
@@ -106,10 +104,7 @@ export default {
this.init()