wangfei před 6 roky
rodič
revize
e59309d06e
3 změnil soubory, kde provedl 6 přidání a 4 odebrání
  1. 1
    1
      src/store/vote.js
  2. 3
    1
      src/views/vote/detail.vue
  3. 2
    2
      vue.config.js

+ 1
- 1
src/store/vote.js Zobrazit soubor

@@ -5,7 +5,7 @@ export default {
5 5
   namespaced: true,
6 6
   state: {
7 7
     activity: {},
8
-    user: '4',
8
+    user: '22',
9 9
     detail: {},
10 10
     myprofile: {},
11 11
     toplist: [],

+ 3
- 1
src/views/vote/detail.vue Zobrazit soubor

@@ -107,7 +107,9 @@ export default {
107 107
       this.show = false
108 108
     },
109 109
     tolink() {
110
-      window.location.href = this.info.AfterVote
110
+      if (this.info.AfterVote != '') {
111
+        window.location.href = this.info.AfterVote
112
+      }
111 113
     },
112 114
   },
113 115
 };

+ 2
- 2
vue.config.js Zobrazit soubor

@@ -7,9 +7,9 @@ module.exports = {
7 7
     proxy: {
8 8
       '/api': {
9 9
         // target: 'http://wechatconfigdev.ycjcjy.com',
10
-        // target: 'http://localhost:8080', // wf
10
+        target: 'http://localhost:8080', // wf
11 11
         // target: 'http://192.168.0.102:8080', // hyq
12
-        target: 'http://192.168.0.11:8080', // zys
12
+        // target: 'http://192.168.0.11:8080', // zys
13 13
         // target: 'http://dev.ycjcjy.com', // frp
14 14
         changeOrigin: true, // 如果接口跨域,需要进行这个参数配置
15 15
         // pathRewrite: {