|
@@ -117,12 +117,8 @@
|
|
|
function geHome() {
|
|
|
if (userStore.getUserInfo.homePath) {
|
|
|
go(userStore.getUserInfo.homePath);
|
|
|
- } else {
|
|
|
- if (currentRoute.value.path.startsWith('/micro-need-air')) {
|
|
|
- window.history.pushState({}, '', glob.homePath || PageEnum.BASE_HOME);
|
|
|
- } else {
|
|
|
- go(glob.homePath || PageEnum.BASE_HOME);
|
|
|
- }
|
|
|
+ } else if (currentRoute.value.path.startsWith('/micro-need-air')) {
|
|
|
+ window.history.pushState({}, '', glob.homePath || PageEnum.BASE_HOME);
|
|
|
// if (currentRoute.value.path.startsWith('/micro-vent-3dModal/dashboard/analysis')) {
|
|
|
// if (glob.homePath == '/micro-vent-3dModal/dashboard/analysis' || PageEnum.BASE_HOME == '/micro-vent-3dModal/dashboard/analysis') {
|
|
|
// actions.setGlobalState({ pageObj: { pageType: 'home' } });
|
|
@@ -136,6 +132,8 @@
|
|
|
|
|
|
// go(glob.homePath || PageEnum.BASE_HOME);
|
|
|
// }
|
|
|
+ } else {
|
|
|
+ go(glob.homePath || PageEnum.BASE_HOME);
|
|
|
}
|
|
|
}
|
|
|
function closeMenu(e?: Event) {
|