Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
528a22ed
Commit
528a22ed
authored
Jan 12, 2023
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pref:优化环境
parent
58aee412
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
5 deletions
+7
-5
base-manager-ui/admin/.env.production
base-manager-ui/admin/.env.production
+2
-1
base-manager-ui/admin/.env.test
base-manager-ui/admin/.env.test
+2
-1
base-manager-ui/admin/src/pages/basicset/jump/jump.vue
base-manager-ui/admin/src/pages/basicset/jump/jump.vue
+1
-1
base-manager-ui/admin/src/router/guards.js
base-manager-ui/admin/src/router/guards.js
+1
-1
base-manager-ui/admin/src/utils/axios-interceptors.js
base-manager-ui/admin/src/utils/axios-interceptors.js
+1
-1
No files found.
base-manager-ui/admin/.env.production
View file @
528a22ed
#生产环境
#生产环境
NODE_ENV = "production"
NODE_ENV = "production"
VUE_APP_API_BASE_URL=/
VUE_APP_API_BASE_URL=/basics_api/base
\ No newline at end of file
VUE_APP_API_portal_URL=/portal_home
\ No newline at end of file
base-manager-ui/admin/.env.test
View file @
528a22ed
#测试环境
#测试环境
NODE_ENV
=
"test"
NODE_ENV
=
"test"
VUE_APP_API_BASE_URL
=/
VUE_APP_API_BASE_URL
=/
basics_api
/
base
\ No newline at end of file
VUE_APP_API_portal_URL
=/
portal_home
\ No newline at end of file
base-manager-ui/admin/src/pages/basicset/jump/jump.vue
View file @
528a22ed
...
@@ -30,7 +30,7 @@ export default {
...
@@ -30,7 +30,7 @@ export default {
}
else
{
}
else
{
this
.
$message
.
warning
(
"
跳转失败,请重新登录
"
);
this
.
$message
.
warning
(
"
跳转失败,请重新登录
"
);
setTimeout
(()
=>
{
setTimeout
(()
=>
{
location
.
href
=
process
.
env
.
VUE_APP_API_portal_URL
+
"
/#/
"
;
location
.
href
=
process
.
env
.
VUE_APP_API_portal_URL
;
},
2000
);
},
2000
);
}
}
},
},
...
...
base-manager-ui/admin/src/router/guards.js
View file @
528a22ed
...
@@ -36,7 +36,7 @@ const loginGuard = (to, from, next) => {
...
@@ -36,7 +36,7 @@ const loginGuard = (to, from, next) => {
if
(
to
.
path
===
"
/jump
"
)
{
if
(
to
.
path
===
"
/jump
"
)
{
next
();
next
();
}
else
{
}
else
{
location
.
href
=
process
.
env
.
VUE_APP_API_portal_URL
+
"
/#/
"
;
location
.
href
=
process
.
env
.
VUE_APP_API_portal_URL
;
}
}
}
}
// const {message} = options
// const {message} = options
...
...
base-manager-ui/admin/src/utils/axios-interceptors.js
View file @
528a22ed
...
@@ -42,7 +42,7 @@ const resMsg = {
...
@@ -42,7 +42,7 @@ const resMsg = {
maxCount
:
1
,
maxCount
:
1
,
});
});
setTimeout
(()
=>
{
setTimeout
(()
=>
{
location
.
href
=
process
.
env
.
VUE_APP_API_portal_URL
+
"
/#/
"
;
location
.
href
=
process
.
env
.
VUE_APP_API_portal_URL
;
},
2000
);
},
2000
);
}
else
if
(
code
===
-
1
)
{
}
else
if
(
code
===
-
1
)
{
message
.
error
({
message
.
error
({
...
...
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