refactor: optimization home page

This commit is contained in:
xiaoxian521
2021-09-21 18:54:05 +08:00
parent fe2cf22e23
commit 9ac28455d2
10 changed files with 646 additions and 176 deletions

View File

@@ -1,4 +1,5 @@
import { storageLocal } from "../../utils/storage";
import { storageLocal } from "/@/utils/storage";
import { deviceDetection } from "/@/utils/deviceDetection";
import { defineStore } from "pinia";
import { store } from "/@/store";
@@ -19,7 +20,7 @@ export const useAppStore = defineStore({
: true,
withoutAnimation: false
},
device: "desktop"
device: deviceDetection() ? "mobile" : "desktop"
}),
getters: {
getSidebarStatus() {