Files
flagnote-web/vue.config.js
Jesse-Ma 0d10a1802a tag1
2022-05-27 14:29:30 +08:00

17 lines
495 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const {defineConfig} = require('@vue/cli-service')
module.exports = defineConfig({
transpileDependencies: true,
devServer: {
proxy: {
'/note': {
target: 'http://localhost:3333/', // 后台接口域名
secure: false, // 如果是https接口需要配置这个参数
changeOrigin: true, //是否跨域
pathRewrite:{
// '^/': '/'
}
}
}
}
})