Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sample-form-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
赵啸非
sample-form-platform
Commits
68b9f2cc
Commit
68b9f2cc
authored
2 years ago
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pref:修改环境变量
parent
8cc833a9
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
8 deletions
+13
-8
sample-form-manager-ui/admin/.env.development
sample-form-manager-ui/admin/.env.development
+1
-4
sample-form-manager-ui/admin/.env.production
sample-form-manager-ui/admin/.env.production
+4
-0
sample-form-manager-ui/admin/.env.test
sample-form-manager-ui/admin/.env.test
+5
-1
sample-form-manager-ui/admin/src/pages/jump/jump.vue
sample-form-manager-ui/admin/src/pages/jump/jump.vue
+1
-1
sample-form-manager-ui/admin/src/router/index.js
sample-form-manager-ui/admin/src/router/index.js
+1
-1
sample-form-manager-ui/admin/src/utils/request.js
sample-form-manager-ui/admin/src/utils/request.js
+1
-1
No files found.
sample-form-manager-ui/admin/.env.development
View file @
68b9f2cc
#开发环境
NODE_ENV = "development"
VUE_APP_API_BASE_URL=http://192.168.0.98:11078
#VUE_APP_API_BASE_URL=http://192.168.0.98:11071/zwfw
#VUE_APP_API_BASE_URL=http://192.168.0.98:11023
#VUE_APP_API_BASE_URL=http://192.168.0.217:17311
\ No newline at end of file
VUE_APP_API_BASE_URL=http://192.168.0.98:11078
\ No newline at end of file
This diff is collapsed.
Click to expand it.
sample-form-manager-ui/admin/.env.production
View file @
68b9f2cc
#生产环境
NODE_ENV = "production"
VUE_APP_API_BASE_URL=http://192.168.0.98:17008
#基础设置
VUE_APP_API_basics_URL=/basics_api/base
#门户
VUE_APP_API_portal_URL=/portal_home
This diff is collapsed.
Click to expand it.
sample-form-manager-ui/admin/.env.test
View file @
68b9f2cc
#开发环境
NODE_ENV
=
"test"
VUE_APP_API_BASE_URL
=
http
://
192.168
.
0.98
:
11078
\ No newline at end of file
VUE_APP_API_BASE_URL
=
http
://
192.168
.
0.98
:
11078
#基础设置
VUE_APP_API_basics_URL
=/
basics_api
/
base
#门户
VUE_APP_API_portal_URL
=/
portal_home
\ No newline at end of file
This diff is collapsed.
Click to expand it.
sample-form-manager-ui/admin/src/pages/jump/jump.vue
View file @
68b9f2cc
...
...
@@ -8,7 +8,7 @@ import local from "@/utils/local";
export
default
{
data
()
{
return
{
portal
:
process
.
env
.
VUE_APP_API_portal_URL
+
"
/#/
"
,
portal
:
process
.
env
.
VUE_APP_API_portal_URL
,
};
},
created
()
{
...
...
This diff is collapsed.
Click to expand it.
sample-form-manager-ui/admin/src/router/index.js
View file @
68b9f2cc
...
...
@@ -40,7 +40,7 @@ router.beforeEach((to, from, next) => {
if
(
to
.
path
===
"
/jump
"
)
{
next
();
}
else
{
location
.
href
=
process
.
env
.
VUE_APP_API_portal_URL
+
"
/#/
"
;
location
.
href
=
process
.
env
.
VUE_APP_API_portal_URL
;
// next({ path: "/login" });
}
}
...
...
This diff is collapsed.
Click to expand it.
sample-form-manager-ui/admin/src/utils/request.js
View file @
68b9f2cc
...
...
@@ -40,7 +40,7 @@ axios.interceptors.response.use(
message
:
msg
,
});
setTimeout
(()
=>
{
location
.
href
=
process
.
env
.
VUE_APP_API_portal_URL
+
"
/#/
"
;
location
.
href
=
process
.
env
.
VUE_APP_API_portal_URL
;
},
2000
);
}
}
...
...
This diff is collapsed.
Click to expand it.
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