优化 vue2 的前端,登出系统时,拼接 BASE PATH

This commit is contained in:
YunaiV
2022-04-18 21:15:01 +08:00
parent d9a129d317
commit 4944f65905
43 changed files with 1025 additions and 879 deletions

View File

@ -56,6 +56,7 @@ import SizeSelect from '@/components/SizeSelect'
import Search from '@/components/HeaderSearch'
import RuoYiGit from '@/components/RuoYi/Git'
import RuoYiDoc from '@/components/RuoYi/Doc'
import {getPath} from "@/utils/ruoyi";
export default {
components: {
@ -98,7 +99,7 @@ export default {
async logout() {
this.$modal.confirm('确定注销并退出系统吗?', '提示').then(() => {
this.$store.dispatch('LogOut').then(() => {
location.href = '/index';
location.href = getPath('/index');
})
}).catch(() => {});
}