mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-09-24 07:19:46 +08:00
update 解决 logout 写死 无法扩展路径问题
This commit is contained in:
@ -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 config from '@/../vue.config'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
@ -102,7 +103,7 @@ export default {
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
this.$store.dispatch('LogOut').then(() => {
|
||||
location.href = '/index';
|
||||
location.href = config.publicPath + 'index';
|
||||
})
|
||||
}).catch(() => {});
|
||||
}
|
||||
|
Reference in New Issue
Block a user