Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bianpoSys
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
xinzhedeai
bianpoSys
Commits
909a7349
Commit
909a7349
authored
Feb 21, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 图片管理 ip地址不匹配问题统一处理
parent
b16e93a8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
3 deletions
+15
-3
.env.development
.env.development
+1
-0
.env.production
.env.production
+8
-1
getters.js
src/store/getters.js
+4
-1
vue.config.js
vue.config.js
+2
-1
No files found.
.env.development
View file @
909a7349
...
...
@@ -7,6 +7,7 @@ ENV = 'development'
# 边坡结构稳定性监测系统/开发环境
VUE_APP_BASE_API = '/dev-api'
#VUE_APP_BASE_API = '/prod-api'
VUE_APP_BASE_URL = 'http://192.168.2.16:9090'
# 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true
.env.production
View file @
909a7349
...
...
@@ -4,5 +4,12 @@ VUE_APP_TITLE = 边坡结构稳定性监测系统
# 生产环境配置
ENV = 'production'
# 若依管理系统/生产环境
VUE_APP_BASE_API = '/prod-api'
\ No newline at end of file
VUE_APP_BASE_API = '/prod-api'
# 正式环境
# VUE_APP_BASE_URL = 'http://60.212.188.152:12100'
# 测试环境
VUE_APP_BASE_URL = 'http://192.168.3.60:9090'
src/store/getters.js
View file @
909a7349
...
...
@@ -15,7 +15,10 @@ const getters = {
topbarRouters
:
state
=>
state
.
permission
.
topbarRouters
,
defaultRoutes
:
state
=>
state
.
permission
.
defaultRoutes
,
sidebarRouters
:
state
=>
state
.
permission
.
sidebarRouters
,
appPicApi
:
res
=>
'
http://60.212.188.152:12100
'
,
// appPicApi: res => 'http://60.212.188.152:12100',
// appPicApi: res => 'http://192.168.2.16:9090',
appPicApi
:
res
=>
process
.
env
.
VUE_APP_BASE_URL
,
// exportModel: res => 'http://60.212.188.152:12100',
// appPicApi: res => 'http://192.168.3.37:40251',
}
...
...
vue.config.js
View file @
909a7349
...
...
@@ -37,7 +37,8 @@ module.exports = {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[
process
.
env
.
VUE_APP_BASE_API
]:
{
// target: `http://192.168.3.226:9090`,
target
:
`http://192.168.2.16:9090`
,
// target: `http://192.168.2.16:9090`,
target
:
process
.
env
.
VUE_APP_BASE_URL
,
// target: `http://60.212.188.152:12000`,//服务器
// target: `http://182.92.170.89:10082`,//服务器
changeOrigin
:
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