Browse Source
将 `usePlatForm` 钩子函数从 `src/common/usePlatform.ts` 迁移到 `src/common/event/PlatForm/hook.ts`,并简化其返回结构。同时在 `PlatForm` 类中添加 `reload` 方法,并在导航栏组件中新增重载菜单项。feat/icon
4 changed files with 17 additions and 11 deletions
@ -0,0 +1,5 @@ |
|||||
|
import { PlatForm } from "." |
||||
|
|
||||
|
export function usePlatForm() { |
||||
|
return PlatForm.getInstance<PlatForm>() |
||||
|
} |
@ -1,9 +0,0 @@ |
|||||
import { PlatForm } from "./event/PlatForm" |
|
||||
import { Tabs } from "./event/Tabs" |
|
||||
|
|
||||
export function usePlatForm() { |
|
||||
return { |
|
||||
Tabs: Tabs.getInstance<Tabs>(), |
|
||||
PlatForm: PlatForm.getInstance<PlatForm>(), |
|
||||
} |
|
||||
} |
|
Loading…
Reference in new issue