From 1233183148cf2e7b569bdef3303a54d4612e35e2 Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Tue, 14 Jul 2020 08:08:13 +0800 Subject: [PATCH] update Former-commit-id: 394df892c4488487bf5e1141b99511ab5643a8a7 Former-commit-id: 9da9e9d3027aa75981a436caeae53979d9472da8 --- projects/WebMVC/wwwroot/js/route.js | 2 +- projects/WebMVC/wwwroot/router/shared/redirect.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/WebMVC/wwwroot/js/route.js b/projects/WebMVC/wwwroot/js/route.js index a9e1a383..fcd87b20 100644 --- a/projects/WebMVC/wwwroot/js/route.js +++ b/projects/WebMVC/wwwroot/js/route.js @@ -31,7 +31,7 @@ router.beforeEach((to, from, next) => { } else { if (to.path === from.path) { - router.push({ path: '/router/shared/redirect.html', query: { url: to.fullUrl } }) + router.push({ path: '/router/shared/redirect.html', query: { url: to.fullPath } }) } else { next(); diff --git a/projects/WebMVC/wwwroot/router/shared/redirect.html b/projects/WebMVC/wwwroot/router/shared/redirect.html index 4e513159..8310b8dc 100644 --- a/projects/WebMVC/wwwroot/router/shared/redirect.html +++ b/projects/WebMVC/wwwroot/router/shared/redirect.html @@ -4,8 +4,8 @@