修复跨域问题
This commit is contained in:
parent
33d70c8e82
commit
74043e236a
@ -50,7 +50,7 @@ module.exports = {
|
||||
// change xxx-api/login => mock/login
|
||||
// detail: https://cli.vuejs.org/config/#devserver-proxy
|
||||
[process.env.VUE_APP_BASE_API]: {
|
||||
target: `http://${host}:${port}/mock`,
|
||||
target: "https://adminapi-test.kingsome.cn",
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
['^' + process.env.VUE_APP_BASE_API]: ''
|
||||
|
Loading…
x
Reference in New Issue
Block a user