diff --git a/src/router/index.js b/src/router/index.js index 18ff683..8d1743f 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -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 redirect in the breadcrumb * name:'router-name' the name is used by (must set!!!) * meta : { title: 'title' the name show in submenu and breadcrumb (recommend set) diff --git a/src/utils/request.js b/src/utils/request.js index 50d423a..7744512 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -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( } ) -// respone拦截器 +// response 拦截器 service.interceptors.response.use( response => { /**