Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jst-jy-v2
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
huanglu
jst-jy-v2
Commits
06c66c7b
Commit
06c66c7b
authored
Aug 27, 2020
by
huanglu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: api base url
parent
e22bfec1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
App.vue
src/App.vue
+2
-2
request.js
src/utils/request.js
+1
-1
No files found.
src/App.vue
View file @
06c66c7b
...
@@ -84,7 +84,7 @@ export default {
...
@@ -84,7 +84,7 @@ export default {
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
this
.
$message
.
error
(
err
.
msg
||
'登录失败,5秒后跳转到登录页'
)
this
.
$message
.
error
(
err
.
msg
||
'登录失败,5秒后跳转到登录页'
)
setTimeout
(()
=>
{
setTimeout
(()
=>
{
//
window.location = '/signin/#/logout'
window
.
location
=
'/signin/#/logout'
},
5000
)
},
5000
)
}).
finally
(()
=>
{
}).
finally
(()
=>
{
loading
.
close
()
loading
.
close
()
...
@@ -96,7 +96,7 @@ export default {
...
@@ -96,7 +96,7 @@ export default {
message
:
'检测到您还未登录,即将为你跳转到登录页面!'
message
:
'检测到您还未登录,即将为你跳转到登录页面!'
})
})
setTimeout
(()
=>
{
setTimeout
(()
=>
{
//
window.location = '/signin/#/logout'
window
.
location
=
'/signin/#/logout'
},
3000
)
},
3000
)
}
}
}
}
...
...
src/utils/request.js
View file @
06c66c7b
import
axios
from
'axios'
;
import
axios
from
'axios'
;
const
http
=
axios
.
create
({
const
http
=
axios
.
create
({
baseUrl
:
process
.
env
.
VUE_APP_API_HOST
||
process
.
env
.
BASE_URL
baseUrl
:
'/'
})
})
http
.
defaults
.
timeout
=
10000
;
http
.
defaults
.
timeout
=
10000
;
...
...
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