更新了我的页面第一次进入缺少商家入驻

This commit is contained in:
weipengfei 2023-11-20 18:37:58 +08:00
parent 494427d94c
commit da010bf09d

View File

@ -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>