Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
visualcloud
/
Vmatrix-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
333a90ae
authored
Sep 04, 2019
by
hank
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
api
parent
a33e6602
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/utils/request.js
+2
-2
vue.config.js
+1
-1
No files found.
src/utils/request.js
View file @
333a90ae
...
...
@@ -7,7 +7,7 @@ import { getToken } from '@/utils/auth'
const
service
=
axios
.
create
({
baseURL
:
process
.
env
.
VUE_APP_BASE_API
,
// url = base url + request url
// withCredentials: true, // send cookies when cross-domain requests
timeout
:
5
000
// request timeout
timeout
:
10
000
// request timeout
})
// request interceptor
...
...
@@ -48,7 +48,7 @@ service.interceptors.response.use(
// if the custom code is not 20000, it is judged as an error.
if
(
res
.
code
!==
20000
)
{
Message
({
message
:
res
.
message
||
'Error'
,
message
:
res
.
message
||
'
response
Error'
,
type
:
'error'
,
duration
:
5
*
1000
})
...
...
vue.config.js
View file @
333a90ae
...
...
@@ -24,7 +24,7 @@ module.exports = {
* In most cases please use '/' !!!
* Detail: https://cli.vuejs.org/config/#publicpath
*/
publicPath
:
'/'
,
publicPath
:
'
.
/'
,
outputDir
:
'dist'
,
assetsDir
:
'static'
,
lintOnSave
:
process
.
env
.
NODE_ENV
===
'development'
,
...
...
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