diff --git a/src/layout/navBars/breadcrumb/setings.vue b/src/layout/navBars/breadcrumb/setings.vue index 3aedc83a..1f6c800a 100644 --- a/src/layout/navBars/breadcrumb/setings.vue +++ b/src/layout/navBars/breadcrumb/setings.vue @@ -618,7 +618,6 @@ export default defineComponent({ }); // 监听窗口大小改变,非默认布局,设置成默认布局(适配移动端) proxy.mittBus.on('layoutMobileResize', (res: any) => { - if (getThemeConfig.value.layout === res.layout) return false; getThemeConfig.value.layout = res.layout; getThemeConfig.value.isDrawer = false; initSetLayoutChange(); diff --git a/src/store/modules/userInfos.ts b/src/store/modules/userInfos.ts index 52e438ab..c4541244 100644 --- a/src/store/modules/userInfos.ts +++ b/src/store/modules/userInfos.ts @@ -1,5 +1,5 @@ import { Module } from 'vuex'; -import { Session } from '/@/utils/storage.ts'; +import { Session } from '/@/utils/storage'; // 此处加上 `.ts` 后缀报错,具体原因不详 import { UserInfosState, RootStateTypes } from '/@/store/interface/index';