Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
digital-construction
Project
Project
Details
Activity
Releases
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
张牧越
digital-construction
Commits
5d02e756
Commit
5d02e756
authored
Jun 21, 2023
by
张牧越
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlfix
parent
5889c586
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
6 deletions
+4
-6
.env.development
.env.development
+1
-2
.env.production
.env.production
+1
-2
noloadingRequest.js
src/utils/noloadingRequest.js
+1
-1
request.js
src/utils/request.js
+1
-1
No files found.
.env.development
View file @
5d02e756
NODE_ENV = "development"
Mock: true
VUE_APP_API_URL = "http://qjwl.ythplan.com/"
# VUE_APP_API_URL = "http://192.168.0.165:8002/"
VUE_APP_API_URL = "https://yth.vnet1000.net/"
.env.production
View file @
5d02e756
NODE_ENV = "production"
Mock: false
VUE_APP_API_URL = "http://qjwl.ythplan.com/"
# VUE_APP_API_URL = "http://192.168.0.165:8002/"
\ No newline at end of file
VUE_APP_API_URL = ""
\ No newline at end of file
src/utils/noloadingRequest.js
View file @
5d02e756
...
...
@@ -28,7 +28,7 @@ noLoadingrequest.interceptors.response.use(
})
}
if
(
response
.
data
.
status
==
401
)
{
window
.
location
.
href
=
process
.
env
.
VUE_APP_API_URL
+
'
pweb/m/login?is_screen=1'
window
.
location
.
href
=
window
.
location
.
origin
+
'/
pweb/m/login?is_screen=1'
}
return
response
.
data
},
...
...
src/utils/request.js
View file @
5d02e756
...
...
@@ -64,7 +64,7 @@ request.interceptors.response.use(
})
}
if
(
response
.
data
.
status
==
401
)
{
window
.
location
.
href
=
process
.
env
.
VUE_APP_API_URL
+
'
pweb/m/login?is_screen=1'
window
.
location
.
href
=
window
.
location
.
origin
+
'/
pweb/m/login?is_screen=1'
}
return
response
.
data
},
...
...
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