fix:404返回首页

This commit is contained in:
shijing 2024-07-02 09:16:26 +08:00
parent 5fe388aaf6
commit 9140c41a15
1 changed files with 8 additions and 2 deletions

View File

@ -17,7 +17,13 @@
export default { export default {
methods: { methods: {
gohome(){ gohome(){
location.href="#/" let base_dashboard = this.$TOOL.data.get('BASE_INFO').base.base_dashboard;
if (base_dashboard == null || base_dashboard == undefined) {
base_dashboard = '/dashboard'
}
this.$router.replace({
path: base_dashboard,
});
}, },
goback(){ goback(){
this.$router.go(-1); this.$router.go(-1);