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,8 +17,14 @@
export default {
methods: {
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(){
this.$router.go(-1);
},