@@ -68,7 +68,7 @@
"vue": "^3.2.26",
"vue-i18n": "^9.1.9",
"vue-json-pretty": "^1.8.2",
- "vue-router": "^4.0.12",
+ "vue-router": "4.0.12",
"vue-types": "^4.1.1",
"vue3-google-map": "^0.21.0",
"xlsx": "^0.17.4"
@@ -56,7 +56,8 @@
async function toggleLocale(lang: LocaleType | string) {
await changeLocale(lang as LocaleType);
selectedKeys.value = [lang as string];
- props.reload && location.reload();
+ console.log('toggleLocale', props.reload);
+ // props.reload && location.reload();
}
function handleMenuEvent(menu: DropMenu) {
@@ -71,6 +71,7 @@ export function createPermissionGuard(router: Router) {
// Jump to the 404 page after processing the login
+ console.log('to.fullPath', from.path, LOGIN_PATH, from.path === LOGIN_PATH, to.fullPath);
if (
from.path === LOGIN_PATH &&
to.name === PAGE_NOT_FOUND_ROUTE.name &&
@@ -20,7 +20,7 @@ export const PAGE_NOT_FOUND_ROUTE: AppRouteRecordRaw = {
children: [
{
path: '/:path(.*)*',
- name: PAGE_NOT_FOUND_NAME + 'index',
+ name: PAGE_NOT_FOUND_NAME,
component: EXCEPTION_COMPONENT,
meta: {
title: 'ErrorPage',