Browse Source

tweak spelling mistakes

Pan 6 years ago
parent
commit
a95616f273
2 changed files with 3 additions and 3 deletions
  1. 1 1
      src/router/index.js
  2. 2 2
      src/utils/request.js

+ 1 - 1
src/router/index.js

@@ -14,7 +14,7 @@ import Layout from '../views/layout/Layout'
14 14
 * alwaysShow: true               if set true, will always show the root menu, whatever its child routes length
15 15
 *                                if not set alwaysShow, only more than one route under the children
16 16
 *                                it will becomes nested mode, otherwise not show the root menu
17
-* redirect: noredirect           if `redirect:noredirect` will no redirct in the breadcrumb
17
+* redirect: noredirect           if `redirect:noredirect` will no redirect in the breadcrumb
18 18
 * name:'router-name'             the name is used by <keep-alive> (must set!!!)
19 19
 * meta : {
20 20
     title: 'title'               the name show in submenu and breadcrumb (recommend set)

+ 2 - 2
src/utils/request.js

@@ -5,7 +5,7 @@ import { getToken } from '@/utils/auth'
5 5
 
6 6
 // 创建axios实例
7 7
 const service = axios.create({
8
-  baseURL: process.env.BASE_API, // api的base_url
8
+  baseURL: process.env.BASE_API, // api  base_url
9 9
   timeout: 5000 // 请求超时时间
10 10
 })
11 11
 
@@ -24,7 +24,7 @@ service.interceptors.request.use(
24 24
   }
25 25
 )
26 26
 
27
-// respone拦截器
27
+// response 拦截器
28 28
 service.interceptors.response.use(
29 29
   response => {
30 30
     /**