refactor(chat + workspace): chat和workspace重构,子路由、懒加载等
This commit is contained in:
1 parent
0a647a0b79
commit
1f1f7236b0
57 files changed
+4356
-3798
No files matched your search
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* features/auth/composables/login.deps.ts
|
||||
* 登录页 composables 共享依赖(i18n、路由、主题、消息等)。
|
||||
*/
|
||||
import type { ComputedRef, WritableComputedRef } from 'vue';
|
||||
import type { ComposerTranslation } from 'vue-i18n';
|
||||
import type { RouteLocationNormalizedLoaded, Router } from 'vue-router';
|
||||
import type { useMessage } from '@/composables/useMessage';
|
||||
import type { ThemePreference } from '@/composables/useTheme';
|
||||
|
||||
export interface LoginDeps {
|
||||
t: ComposerTranslation;
|
||||
locale: WritableComputedRef<string>;
|
||||
msg: ReturnType<typeof useMessage>;
|
||||
router: Router;
|
||||
route: RouteLocationNormalizedLoaded;
|
||||
setThemePreference: (pref: ThemePreference) => void;
|
||||
appliedTheme: ComputedRef<ThemePreference>;
|
||||
}
|
||||
Reference in new issue
Block a user