11
This commit is contained in:
33
vue.config.js
Normal file
33
vue.config.js
Normal file
@@ -0,0 +1,33 @@
|
||||
// module.exports = {
|
||||
// devServer: {
|
||||
// port: 8080,
|
||||
// proxy: {
|
||||
// '/api': {
|
||||
// //本地服务接口地址
|
||||
// target: 'http://m.jl.com',
|
||||
// ws: true
|
||||
// },
|
||||
// '/blackboard': {
|
||||
// //本地服务接口地址
|
||||
// target: 'http://m.jl.com',
|
||||
// ws: true
|
||||
// },
|
||||
// }
|
||||
// }
|
||||
// };
|
||||
|
||||
module.exports = {
|
||||
devServer: {
|
||||
port: 1887,
|
||||
proxy: {
|
||||
'/api': {
|
||||
//本地服务接口地址
|
||||
target: 'http://localhost:8000',
|
||||
ws: true,
|
||||
pathRewrite: {
|
||||
'^/api': '/'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user