Browse Source

!1131 UI jump to homepage if user input debugger url but debugger is disabled

From: @panhui3
Reviewed-by: @ouwenchang,@wenkai_dist
Signed-off-by: @wenkai_dist
tags/v1.2.0-rc1
mindspore-ci-bot Gitee 4 years ago
parent
commit
39cf3763df
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      mindinsight/ui/src/main.js

+ 4
- 0
mindinsight/ui/src/main.js View File

@@ -45,6 +45,10 @@ Vue.prototype.$bus = new Vue();

// Route interception
router.beforeEach((to, from, next) => {
if (!window.enableDebugger && to.path === '/debugger') {
next('/');
return;
}
// cancel request
if (from.path !== '/') {
store.commit('clearToken');


Loading…
Cancel
Save