Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tianjin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
徐来柯
tianjin
Commits
a959393d
Commit
a959393d
authored
Jan 29, 2021
by
徐来柯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
a53f803d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
vue.config.js
vue.config.js
+13
-12
No files found.
vue.config.js
View file @
a959393d
...
@@ -21,26 +21,27 @@ module.exports = {
...
@@ -21,26 +21,27 @@ module.exports = {
devServer
:
{
devServer
:
{
open
:
true
,
//项目运行自动打开浏览器
open
:
true
,
//项目运行自动打开浏览器
proxy
:
{
proxy
:
{
'/api'
:
{
//这里最好有一个 /
target
:
'http://192.168.1.180:8802'
,
// 后台接口域名
ws
:
true
,
//如果要代理 websockets,配置这个参数
secure
:
false
,
// 如果是https接口,需要配置这个参数
changeOrigin
:
true
,
//是否跨域
pathRewrite
:
{
'^/api'
:
'/api'
,
}
}
// '/api': {
// '/api': {
// //这里最好有一个 /
// //这里最好有一个 /
// target: 'http://192.168.1.
237
:8802', // 后台接口域名
// target: 'http://192.168.1.
180
:8802', // 后台接口域名
// ws: true, //如果要代理 websockets,配置这个参数
// ws: true, //如果要代理 websockets,配置这个参数
// secure: false, // 如果是https接口,需要配置这个参数
// secure: false, // 如果是https接口,需要配置这个参数
// changeOrigin: true, //是否跨域
// changeOrigin: true, //是否跨域
// pathRewrite: {
// pathRewrite: {
// '^/api': '/api'
// '^/api': '/api'
,
// }
// }
// }
// }
'/api'
:
{
//这里最好有一个 /
// 192.168.1.237 192.168.1.125
target
:
'http://192.168.1.125:8802'
,
// 后台接口域名
ws
:
true
,
//如果要代理 websockets,配置这个参数
secure
:
false
,
// 如果是https接口,需要配置这个参数
changeOrigin
:
true
,
//是否跨域
pathRewrite
:
{
'^/api'
:
'/api'
}
}
}
}
},
},
css
:
{
css
:
{
...
...
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