|
@@ -525,14 +525,15 @@ export default {
|
|
|
|
|
|
async mounted() {
|
|
|
this.loading = false;
|
|
|
- api.system.systemConfigConfigKey("xcx_video_open").then((res) => {
|
|
|
- this.xcx_video_open = Number(res.data);
|
|
|
+
|
|
|
+
|
|
|
this.$nextTick(() => {
|
|
|
// 需要延迟
|
|
|
|
|
|
api.user.getInfo().then((res) => {
|
|
|
uni.setStorageSync("userInfo", res.data);
|
|
|
this.$store.commit("SET_USERINFO", res.data);
|
|
|
+ this.$store.dispatch("GetRoadExamVip");
|
|
|
// if (!res.data.nickName) {
|
|
|
// uni.showModal({
|
|
|
// title: "新用户更新信息",
|
|
@@ -549,8 +550,8 @@ export default {
|
|
|
// })
|
|
|
});
|
|
|
});
|
|
|
- this.$store.dispatch("GetRoadExamVip");
|
|
|
- });
|
|
|
+
|
|
|
+
|
|
|
|
|
|
// api.user.getInfo().then(res => {
|
|
|
// uni.setStorageSync("userInfo", res.data);
|