panhui 3 年 前
コミット
fa0ad7ff63
4 ファイル変更7 行追加7 行削除
  1. 1 1
      .env.development
  2. 0 1
      src/main.js
  3. 0 1
      src/store/index.js
  4. 6 4
      src/views/Home.vue

+ 1 - 1
.env.development

@@ -1,4 +1,4 @@
-VUE_APP_BASE_URL=https://test.raex.vip/
+VUE_APP_BASE_URL=http://localhost:8080
 NODE_ENV=development
 VUE_APP_PUBLIC_PATH=/
 ASSETS_PATH=raex

+ 0 - 1
src/main.js

@@ -111,7 +111,6 @@ if (query.code) {
         // document.location.replace(location.origin + '/wx/redirect?redirectUrl=' + location.href);
     }
 }
-store.dispatch('getTime');
 if (location.pathname === '/hall') {
     if (query.id) {
         store.commit('setShowRoomId', query.id);

+ 0 - 1
src/store/index.js

@@ -80,7 +80,6 @@ export default createStore({
     },
     actions: {
         getUserInfo(context, refresh) {
-            context.dispatch('getBankCard');
             return http.http
                 .get('/user/my', { refresh })
                 .then(res => {

+ 6 - 4
src/views/Home.vue

@@ -105,10 +105,12 @@ export default {
                 message: '加载中...',
                 forbidClick: true
             });
-            return Promise.all([this.getBanner()]).then(() => {
-                this.$toast.clear();
-                return Promise.resolve();
-            });
+            this.$toast.clear();
+            return Promise.resolve();
+            // return Promise.all([this.getBanner()]).then(() => {
+            //     this.$toast.clear();
+            //     return Promise.resolve();
+            // });
             // this.getNews();
         },
         getProduct() {