Pan 6 роки тому
батько
коміт
a95616f273
2 змінених файлів з 3 додано та 3 видалено
  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
 * alwaysShow: true               if set true, will always show the root menu, whatever its child routes length
14
 * alwaysShow: true               if set true, will always show the root menu, whatever its child routes length
15
 *                                if not set alwaysShow, only more than one route under the children
15
 *                                if not set alwaysShow, only more than one route under the children
16
 *                                it will becomes nested mode, otherwise not show the root menu
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
 * name:'router-name'             the name is used by <keep-alive> (must set!!!)
18
 * name:'router-name'             the name is used by <keep-alive> (must set!!!)
19
 * meta : {
19
 * meta : {
20
     title: 'title'               the name show in submenu and breadcrumb (recommend set)
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
 // 创建axios实例
6
 // 创建axios实例
7
 const service = axios.create({
7
 const service = axios.create({
8
-  baseURL: process.env.BASE_API, // api的base_url
8
+  baseURL: process.env.BASE_API, // api  base_url
9
   timeout: 5000 // 请求超时时间
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
 service.interceptors.response.use(
28
 service.interceptors.response.use(
29
   response => {
29
   response => {
30
     /**
30
     /**