更新了我的页面第一次进入缺少商家入驻
This commit is contained in:
parent
494427d94c
commit
da010bf09d
@ -249,7 +249,8 @@
|
||||
setVisit
|
||||
} from '@/api/user.js';
|
||||
import {
|
||||
getVersion
|
||||
getVersion,
|
||||
getconfig
|
||||
} from "@/api/public";
|
||||
import {
|
||||
orderData
|
||||
@ -437,6 +438,7 @@
|
||||
let curRoute = routes[routes.length - 1].route
|
||||
this.activeRouter = '/' + curRoute
|
||||
this.getNav();
|
||||
this.getConfigData();
|
||||
if (that.isLogin) {
|
||||
this.getUserInfo();
|
||||
this.orderNum();
|
||||
@ -677,6 +679,13 @@
|
||||
this.openAuto()
|
||||
}
|
||||
},
|
||||
// 获取配置
|
||||
getConfigData() {
|
||||
getconfig().then(res => {
|
||||
uni.$emit('update', res.data)
|
||||
this.$store.commit('GLOBAL_DATA', res.data);
|
||||
}).catch(err => {});
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user