Browse Source

首页去除无用的接口

JXDS18FUJT 1 year ago
parent
commit
9d18bbb38e
1 changed files with 5 additions and 4 deletions
  1. 5 4
      src/pages/carVideo/index.vue

+ 5 - 4
src/pages/carVideo/index.vue

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