Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sts网站
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
liyang
sts网站
Commits
29a5b6da
Commit
29a5b6da
authored
Apr 24, 2025
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update vue.config.js
parent
b1d21395
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
vue.config.js
ruoyi-ui/vue.config.js
+8
-1
No files found.
ruoyi-ui/vue.config.js
View file @
29a5b6da
...
...
@@ -9,6 +9,8 @@ const CompressionPlugin = require('compression-webpack-plugin')
const
name
=
process
.
env
.
VUE_APP_TITLE
||
'若依管理系统'
// 网页标题
const
baseUrl
=
'http://localhost:8080'
// 后端接口
const
port
=
process
.
env
.
port
||
process
.
env
.
npm_config_port
||
80
// 端口
// vue.config.js 配置说明
...
...
@@ -36,11 +38,16 @@ module.exports = {
proxy
:
{
// detail: https://cli.vuejs.org/config/#devserver-proxy
[
process
.
env
.
VUE_APP_BASE_API
]:
{
target
:
`http://localhost:8080`
,
target
:
baseUrl
,
changeOrigin
:
true
,
pathRewrite
:
{
[
'^'
+
process
.
env
.
VUE_APP_BASE_API
]:
''
}
},
// springdoc proxy
'^/v3/api-docs/(.*)'
:
{
target
:
baseUrl
,
changeOrigin
:
true
}
},
disableHostCheck
:
true
...
...
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