You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
475 B
21 lines
475 B
const { defineConfig } = require('@vue/cli-service')
|
|
module.exports = defineConfig({
|
|
transpileDependencies: true,
|
|
devServer: {
|
|
port: 8080, //项目运行的端口号
|
|
host: "127.0.0.1",
|
|
open: true,
|
|
https: false,
|
|
proxy: {
|
|
"/api": {
|
|
target: "http://121.37.102.50:3006/", //服务端的接口地址
|
|
ws: true,
|
|
changeOrigin: true, //开启跨域
|
|
pathRewrite: {
|
|
"^/api": "",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
})
|