# vue-management **Repository Path**: honeyhao/vue-management ## Basic Information - **Project Name**: vue-management - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2021-06-07 - **Last Updated**: 2022-03-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # vue-management ## Project setup ``` npm install ``` ### Compiles and hot-reloads for development ``` npm run serve ``` ### Compiles and minifies for production ``` npm run build ``` ### Lints and fixes files ``` npm run lint ``` ### Customize configuration See [Configuration Reference](https://cli.vuejs.org/config/). ### 问题记录 **Router** 1. 在 router.beforeEach 路由拦截时,首先判断了是否有 token, 如何没有 token 直接跳转到"/login", 此时会报堆栈错误。 解决:需要在判断是否在登录页面,如果是登录页面,直接 next() 否则 next("/login")。 具体代码路径:router/permission.js 2. vue 路由器 3.1.0 推送/替换导致导航重复错误 Navigation cancelled ……to with a new navigation, 这个错误是 vue-router 内部错误,没有进行 catch 处理,导致的编程式导航跳转问题,往同一地址跳转时会报错的情况 解决: 见 router/index.js