用户登录测试基本完成
This commit is contained in:
@@ -1,5 +1,25 @@
|
||||
const { defineConfig } = require('@vue/cli-service')
|
||||
module.exports = defineConfig({
|
||||
transpileDependencies: true,
|
||||
lintOnSave: false
|
||||
})
|
||||
require('@vue/cli-service')
|
||||
// module.exports = defineConfig({
|
||||
// transpileDependencies: true,
|
||||
// lintOnSave: false
|
||||
// })
|
||||
module.exports = {
|
||||
// 关闭语法检查
|
||||
lintOnSave:false,
|
||||
devServer: {
|
||||
host: 'localhost', // 本地域名/ip地址
|
||||
port: '8080', // 端口号
|
||||
proxy: {
|
||||
'/api': {
|
||||
//后端接口的baseurl
|
||||
target: 'http://localhost/helloGithub_war_exploded/',
|
||||
//是否允许跨域
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
//这里的作用是使用去掉api
|
||||
'^/api': ''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user