tag1
This commit is contained in:
16
vue.config.js
Normal file
16
vue.config.js
Normal file
@@ -0,0 +1,16 @@
|
||||
const {defineConfig} = require('@vue/cli-service')
|
||||
module.exports = defineConfig({
|
||||
transpileDependencies: true,
|
||||
devServer: {
|
||||
proxy: {
|
||||
'/note': {
|
||||
target: 'http://localhost:3333/', // 后台接口域名
|
||||
secure: false, // 如果是https接口,需要配置这个参数
|
||||
changeOrigin: true, //是否跨域
|
||||
pathRewrite:{
|
||||
// '^/': '/'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user