当前位置: 首页 > article >正文

解决element-ui.common.js?5c96:3:Navigation cancelled from “/admin“ to “/users“ with a new navigation.

当我在写电商管理系统时,点击菜单栏进行路由跳转时,报一个关于路由的错误

element-ui.common.js?5c96:3374 Error: Navigation cancelled from "/admin" to "/users" with a new navigation.
    at createRouterError (vue-router.esm.js?8c4f:2065)
    at createNavigationCancelledError (vue-router.esm.js?8c4f:2047)
    at eval (vue-router.esm.js?8c4f:2399)
    at step (vue-router.esm.js?8c4f:2001)
    at step (vue-router.esm.js?8c4f:2008)
    at runQueue (vue-router.esm.js?8c4f:2012)
    at eval (vue-router.esm.js?8c4f:2397)
    at step (vue-router.esm.js?8c4f:2001)
    at eval (vue-router.esm.js?8c4f:2005)
    at eval (vue-router.esm.js?8c4f:2384)

解决方案

//路由导航守卫
router.beforeEach((to, from, next) => {//判断是否是登录页,如果是接着下一步if (to.path === '/login') return next()
http://www.lryc.cn/news/2415649.html

相关文章:

  • Ubuntu设置CPU频率cpufrequtils
  • Windows 7“God Mode”(上帝模式)
  • 全球50大变态网站
  • 使用Arduino,蓝牙和Android app的开源爬墙机器人
  • 人事管理系统平台(源码+开题)
  • 升级cisco设备的IOS
  • VC6.0(Visual C++ 6.0) 建立一个简单的C语言工程
  • DD373自动发布工具/DD373辅助/DD373外挂
  • toolkit 和 toolbox的区别 what the difference between ‘toolkit‘ and ‘toolbox‘
  • 2024七款最佳的渗透测试工具_网络安全渗透工具
  • win7下桌面IE快捷方式无法删除解决方法
  • dede模板里常用到的一些标签—dedecms模板开发
  • Web安全 Acunetix漏洞扫描工具.
  • DIV CSS绝对定位布局案例 position布局实例
  • puppet安装与使用--模块结构(iptables与rsync模块)
  • 【Linux笔记】压缩、解压文件的 4 种方式。tar、gzip、gunzip、zip、unzip、7z命令使用方法
  • 代理网站
  • 浅谈www.baidu.com和baidu.com
  • 基于VHDL语言的数字电子钟设计
  • 上网的数据包交互过程
  • vs2005 调试技巧
  • 华为云CloudIDE的抄袭真相?
  • B站后台源码疑似泄露,作为程序员我们得注意哪些?
  • 基础算法——二分(C语言版)
  • 辽宁网络营销网站建设的步骤-网站设计营销内容
  • Django 基于类的通用视图详解
  • Objective-C 基础语法详解
  • WebService之XFire和SOAP实例(基于JAVA)
  • 复位电路的设计
  • YUI 3中的两种不同继承模式