diff --git a/src/layout/other/404.vue b/src/layout/other/404.vue index f1ac3902..1647130d 100644 --- a/src/layout/other/404.vue +++ b/src/layout/other/404.vue @@ -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); },