mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-08 01:17:23 +08:00
fix: update
This commit is contained in:
parent
c95126adf5
commit
e63fe92cd9
@ -2,6 +2,7 @@ import { storageLocal } from "/@/utils/storage";
|
|||||||
import { deviceDetection } from "/@/utils/deviceDetection";
|
import { deviceDetection } from "/@/utils/deviceDetection";
|
||||||
import { defineStore } from "pinia";
|
import { defineStore } from "pinia";
|
||||||
import { store } from "/@/store";
|
import { store } from "/@/store";
|
||||||
|
import { getConfig } from "/@/config";
|
||||||
|
|
||||||
interface AppState {
|
interface AppState {
|
||||||
sidebar: {
|
sidebar: {
|
||||||
@ -22,7 +23,9 @@ export const useAppStore = defineStore({
|
|||||||
withoutAnimation: false
|
withoutAnimation: false
|
||||||
},
|
},
|
||||||
// 这里的layout用于监听容器拖拉后恢复对应的导航模式
|
// 这里的layout用于监听容器拖拉后恢复对应的导航模式
|
||||||
layout: storageLocal.getItem("responsive-layout")?.layout ?? "vertical",
|
layout:
|
||||||
|
storageLocal.getItem("responsive-layout")?.layout?.layout ??
|
||||||
|
getConfig().Layout,
|
||||||
device: deviceDetection() ? "mobile" : "desktop"
|
device: deviceDetection() ? "mobile" : "desktop"
|
||||||
}),
|
}),
|
||||||
getters: {
|
getters: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user