feat: mobile terminal adaptation (#78)

This commit is contained in:
Fine0830
2022-05-09 14:54:08 +08:00
committed by GitHub
parent 2a2500a28d
commit d93a7cead2
15 changed files with 56 additions and 432 deletions

View File

@@ -33,6 +33,7 @@ interface AppState {
autoRefresh: boolean;
pageTitle: string;
version: string;
isMobile: boolean;
}
export const appStore = defineStore({
@@ -51,6 +52,7 @@ export const appStore = defineStore({
autoRefresh: false,
pageTitle: "",
version: "",
isMobile: false,
}),
getters: {
duration(): Duration {
@@ -121,6 +123,9 @@ export const appStore = defineStore({
this.utcHour = utcHour;
this.utc = `${utcHour}:${utcMin}`;
},
setIsMobile(mode: boolean) {
this.isMobile = mode;
},
setEventStack(funcs: (() => void)[]): void {
this.eventStack = funcs;
},