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
54a0e457b4
commit
c95126adf5
@ -1,14 +1,12 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import path from "path";
|
import path from "path";
|
||||||
import { storageLocal } from "/@/utils/storage";
|
import { PropType, ref, nextTick, getCurrentInstance } from "vue";
|
||||||
import { PropType, ref, nextTick } from "vue";
|
|
||||||
import { childrenType } from "../../types";
|
import { childrenType } from "../../types";
|
||||||
import { useAppStoreHook } from "/@/store/modules/app";
|
import { useAppStoreHook } from "/@/store/modules/app";
|
||||||
import Icon from "/@/components/ReIcon/src/Icon.vue";
|
import Icon from "/@/components/ReIcon/src/Icon.vue";
|
||||||
const layout = ref(
|
|
||||||
storageLocal.getItem("responsive-layout") || "vertical-dark"
|
const instance = getCurrentInstance().appContext.app.config.globalProperties;
|
||||||
);
|
const menuMode = instance.$storage.layout?.layout === "vertical";
|
||||||
const menuMode = layout.value.layout.split("-")[0] === "vertical";
|
|
||||||
const pureApp = useAppStoreHook();
|
const pureApp = useAppStoreHook();
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user