Template
1
0
mirror of https://github.com/un-pany/v3-admin-vite.git synced 2025-04-20 10:59:21 +08:00

refactor: 调整 layouts 目录结构

This commit is contained in:
pany 2024-11-26 11:42:24 +08:00
parent df2821ebe9
commit c1290cdf28
6 changed files with 8 additions and 8 deletions

View File

@ -1,7 +1,7 @@
<script lang="ts" setup>
import { useSettingsStore } from "@/pinia/stores/settings"
import { useTagsViewStore } from "@/pinia/stores/tags-view"
import Footer from "./Footer/index.vue"
import { Footer } from "../index"
const tagsViewStore = useTagsViewStore()
const settingsStore = useSettingsStore()

View File

@ -1,4 +1,4 @@
export { default as AppMain } from "./AppMain.vue"
export { default as AppMain } from "./AppMain/index.vue"
export { default as Breadcrumb } from "./Breadcrumb/index.vue"
export { default as Footer } from "./Footer/index.vue"
export { default as Hamburger } from "./Hamburger/index.vue"

View File

@ -8,9 +8,9 @@ import { storeToRefs } from "pinia"
import { watchEffect } from "vue"
import { RightPanel, Settings } from "./components"
import { useResize } from "./composables/useResize"
import LeftMode from "./LeftMode.vue"
import LeftTopMode from "./LeftTopMode.vue"
import TopMode from "./TopMode.vue"
import LeftMode from "./modes/LeftMode.vue"
import LeftTopMode from "./modes/LeftTopMode.vue"
import TopMode from "./modes/TopMode.vue"
// Layout
useResize()

View File

@ -5,7 +5,7 @@ import { useAppStore } from "@/pinia/stores/app"
import { useSettingsStore } from "@/pinia/stores/settings"
import { storeToRefs } from "pinia"
import { computed } from "vue"
import { AppMain, NavigationBar, Sidebar, TagsView } from "./components"
import { AppMain, NavigationBar, Sidebar, TagsView } from "../components"
const { isMobile } = useDevice()
const { isLeft } = useLayoutMode()

View File

@ -3,7 +3,7 @@ import { useAppStore } from "@/pinia/stores/app"
import { useSettingsStore } from "@/pinia/stores/settings"
import { storeToRefs } from "pinia"
import { computed } from "vue"
import { AppMain, Logo, NavigationBar, Sidebar, TagsView } from "./components"
import { AppMain, Logo, NavigationBar, Sidebar, TagsView } from "../components"
const appStore = useAppStore()
const settingsStore = useSettingsStore()

View File

@ -1,7 +1,7 @@
<script lang="ts" setup>
import { useSettingsStore } from "@/pinia/stores/settings"
import { storeToRefs } from "pinia"
import { AppMain, Logo, NavigationBar, TagsView } from "./components"
import { AppMain, Logo, NavigationBar, TagsView } from "../components"
const settingsStore = useSettingsStore()
const { showTagsView, showLogo } = storeToRefs(settingsStore)