File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,12 @@ vue-h5-template
2929│ ├─ mixins.css --------- 全局mixins样式
3030│ └─ variables.css ------ css变量
3131│ ├─ utils --------------- 工具类
32+ │ ├─ debug.js ----------- 调试方法
3233│ ├─ enums.js ----------- 枚举值
3334│ ├─ environment.js ----- 环境变量及方法
35+ │ ├─ httpEnums.js ------- http状态码枚举
36+ │ ├─ index.js ----------- 常用方法
37+ │ ├─ regExp.js --------- 正则表达式
3438│ ├─ request.js --------- axios 封装
3539│ └─ storage.js --------- 本地存储封装
3640│ ├─ views --------------- 页面
@@ -754,9 +758,17 @@ export const getUserInfo = (params) => {
754758
755759### <span id =" router " >vue-router</span >
756760
757- 在` router/modules ` 下管理各个路由。以``为例
761+ 在` router/modules ` 下管理各个路由。以` demo.js ` 为例
758762
759- ```
763+ ``` javascript
764+ const routes = [{
765+ path: ' /userInfo' ,
766+ name: ' UserInfo' ,
767+ component : () => import (/* webpackChunkName: 'user-info' */ ' @/views/demo' ),
768+ meta: { title: ' 用户信息' , showNavbar: true }
769+ }]
770+
771+ export default routes
760772```
761773
762774#### 路由守卫
You can’t perform that action at this time.
0 commit comments