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.
 
 
 
demo/vue.config.js

20 lines
492 B

const { defineConfig } = require('@vue/cli-service')
const { BASE_URL } = require('./src/config')
module.exports = defineConfig({
transpileDependencies: true,
lintOnSave: false,
publicPath: BASE_URL,
devServer: {
port: 8080,
open: true,// vue项目启动时自动打开浏览器
proxy: {
"/api": {
target: "http://8.217.66.254:3000",
changeOrigin: true, //是否跨域
pathRewrite: {
"^/api": "",
},
},
},
},
})