6 changed files with 72 additions and 24 deletions
-
10api/start/login.js
-
3pages/deepMate/deepMate.vue
-
40pages/start/login/login.vue
-
3server/deepchart.json
-
6utils/http.js
-
14vue.config.js
@ -0,0 +1,14 @@ |
|||||
|
module.exports = { |
||||
|
devServer: { |
||||
|
proxy: { |
||||
|
'/api': { // 你的目标服务器的请求路径前缀
|
||||
|
target: 'https://hwjb.homilychart.com', // 目标服务器的地址
|
||||
|
changeOrigin: true, // 是否跨域
|
||||
|
secure: false, // 如果是https接口,需要配置这个参数
|
||||
|
pathRewrite: { |
||||
|
'^/': '/testApi' // 将 /api 替换为 /testApi,以便正确请求目标服务器的资源
|
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue