fix🐛: 解决切换语言不会监听的问题

This commit is contained in:
MTrun
2022-01-07 12:25:23 +08:00
parent 4333b58938
commit 34722916b0
18 changed files with 54 additions and 26 deletions
+7 -1
View File
@@ -1,6 +1,5 @@
import { ResultEnum } from '@/enums/httpEnum'
import { ErrorPageNameMap, PageEnum } from '@/enums/pageEnum'
import { RouteLocation } from 'vue-router'
import router from '@/router'
import { docPath, giteeSourceCodePath } from '@/settings/pathConst'
@@ -87,6 +86,13 @@ export const redirectErrorPage = (code: ResultEnum) => {
routerTurnByName(pageName)
}
/**
* * 重新加载当前路由页面
*/
export const reloadRoutePage = () => {
routerTurnByName(PageEnum.RELOAD_NAME)
}
/**
* * 退出
*/