Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
cloudSystem
This project
Loading...
Sign in
Toggle navigation
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
May 12, 2021
by
liangjianmin
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
css
parent
152e3620
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
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'
}
},
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment