Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

肖康 / cloudSystem

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Commit 4d64c8c5 authored 4 years ago by liangjianmin's avatar liangjianmin
Browse files
Options
  • _('Browse Files')
  • Download
  • Email Patches
  • Plain Diff

css

parent 152e3620
Hide whitespace changes
Inline Side-by-side
Showing with 25 additions and 4 deletions
  • vue.config.js
vue.config.js
View file @ 4d64c8c5
const env = process.env.NODE_ENV;
console.log(env)
const url = 'http://cloud.liexindev.net';
switch (env) {
case 'development':
//开发环境
......@@ -21,6 +21,27 @@ module.exports = {
publicPath: NODE_ENV,
lintOnSave: false,//关闭eslint
outputDir: 'view',
productionSourceMap: false
productionSourceMap: false,
devServer: {
disableHostCheck: true,
port: 8080,
proxy: {
'/auth': {
target: url,
ws: true,
changeOrigin: true,
pathRewrite: {
'^/auth': '/auth'
}
},
'/api': {
target: url,
ws: true,
changeOrigin: true,
pathRewrite: {
'^/api': '/api'
}
},
}
}
}
This diff is collapsed. Click to expand it.
  • Write
  • Preview
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment