Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
web-monitor
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
Administrator
web-monitor
Commits
a95616f2
Commit
a95616f2
authored
Sep 03, 2018
by
Pan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tweak spelling mistakes
parent
cc636a4c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
index.js
src/router/index.js
+1
-1
request.js
src/utils/request.js
+2
-2
No files found.
src/router/index.js
View file @
a95616f2
...
...
@@ -14,7 +14,7 @@ import Layout from '../views/layout/Layout'
* alwaysShow: true if set true, will always show the root menu, whatever its child routes length
* if not set alwaysShow, only more than one route under the children
* it will becomes nested mode, otherwise not show the root menu
* redirect: noredirect if `redirect:noredirect` will no redirct in the breadcrumb
* redirect: noredirect if `redirect:noredirect` will no redir
e
ct in the breadcrumb
* name:'router-name' the name is used by <keep-alive> (must set!!!)
* meta : {
title: 'title' the name show in submenu and breadcrumb (recommend set)
...
...
src/utils/request.js
View file @
a95616f2
...
...
@@ -5,7 +5,7 @@ import { getToken } from '@/utils/auth'
// 创建axios实例
const
service
=
axios
.
create
({
baseURL
:
process
.
env
.
BASE_API
,
// api
的
base_url
baseURL
:
process
.
env
.
BASE_API
,
// api
的
base_url
timeout
:
5000
// 请求超时时间
})
...
...
@@ -24,7 +24,7 @@ service.interceptors.request.use(
}
)
// respon
e
拦截器
// respon
se
拦截器
service
.
interceptors
.
response
.
use
(
response
=>
{
/**
...
...
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