xiaoxian521 преди 2 години
родител
ревизия
acaeb0cb42

+ 1 - 1
src/layout/components/navbar.vue

@@ -1,9 +1,9 @@
 <script setup lang="ts">
-import { useNav } from "../hooks/nav";
 import Search from "./search/index.vue";
 import Notice from "./notice/index.vue";
 import mixNav from "./sidebar/mixNav.vue";
 import avatars from "/@/assets/avatars.jpg";
+import { useNav } from "/@/layout/hooks/useNav";
 import Breadcrumb from "./sidebar/breadCrumb.vue";
 import { deviceDetection } from "@pureadmin/utils";
 import topCollapse from "./sidebar/topCollapse.vue";

+ 1 - 1
src/layout/components/search/components/SearchModal.vue

@@ -1,8 +1,8 @@
 <script lang="ts" setup>
 import { useRouter } from "vue-router";
-import { useNav } from "../../../hooks/nav";
 import SearchResult from "./SearchResult.vue";
 import SearchFooter from "./SearchFooter.vue";
+import { useNav } from "/@/layout/hooks/useNav";
 import { transformI18n } from "/@/plugins/i18n";
 import { deleteChildren } from "@pureadmin/utils";
 import { useDebounceFn, onKeyStroke } from "@vueuse/core";

+ 1 - 1
src/layout/components/sidebar/horizontal.vue

@@ -1,9 +1,9 @@
 <script setup lang="ts">
-import { useNav } from "../../hooks/nav";
 import Search from "../search/index.vue";
 import Notice from "../notice/index.vue";
 import SidebarItem from "./sidebarItem.vue";
 import avatars from "/@/assets/avatars.jpg";
+import { useNav } from "/@/layout/hooks/useNav";
 import screenfull from "../screenfull/index.vue";
 import { deviceDetection } from "@pureadmin/utils";
 import { ref, watch, nextTick, onMounted } from "vue";

+ 1 - 1
src/layout/components/sidebar/logo.vue

@@ -1,5 +1,5 @@
 <script setup lang="ts">
-import { useNav } from "../../hooks/nav";
+import { useNav } from "/@/layout/hooks/useNav";
 
 const props = defineProps({
   collapse: Boolean

+ 1 - 1
src/layout/components/sidebar/mixNav.vue

@@ -1,8 +1,8 @@
 <script setup lang="ts">
 import Search from "../search/index.vue";
 import Notice from "../notice/index.vue";
-import { useNav } from "../../hooks/nav";
 import avatars from "/@/assets/avatars.jpg";
+import { useNav } from "/@/layout/hooks/useNav";
 import { transformI18n } from "/@/plugins/i18n";
 import screenfull from "../screenfull/index.vue";
 import { deviceDetection } from "@pureadmin/utils";

+ 1 - 1
src/layout/components/sidebar/sidebarItem.vue

@@ -1,7 +1,7 @@
 <script setup lang="ts">
 import path from "path";
-import { useNav } from "../../hooks/nav";
 import { childrenType } from "../../types";
+import { useNav } from "/@/layout/hooks/useNav";
 import { transformI18n } from "/@/plugins/i18n";
 import { useAppStoreHook } from "/@/store/modules/app";
 import { useRenderIcon } from "/@/components/ReIcon/src/hooks";

+ 1 - 1
src/layout/components/sidebar/vertical.vue

@@ -2,10 +2,10 @@
 import Logo from "./logo.vue";
 import { useRoute } from "vue-router";
 import { emitter } from "/@/utils/mitt";
-import { useNav } from "../../hooks/nav";
 import SidebarItem from "./sidebarItem.vue";
 import leftCollapse from "./leftCollapse.vue";
 import type { StorageConfigs } from "/#/index";
+import { useNav } from "/@/layout/hooks/useNav";
 import { storageLocal } from "@pureadmin/utils";
 import { ref, computed, watch, onBeforeMount } from "vue";
 import { findRouteByPath, getParentPaths } from "/@/router/utils";

+ 0 - 0
src/layout/hooks/nav.ts → src/layout/hooks/useNav.ts


+ 1 - 1
src/layout/hooks/useTranslationLang.ts

@@ -1,4 +1,4 @@
-import { useNav } from "./nav";
+import { useNav } from "./useNav";
 import { useI18n } from "vue-i18n";
 import { useRoute } from "vue-router";
 import { watch, getCurrentInstance, type Ref } from "vue";

+ 1 - 1
src/views/login/index.vue

@@ -8,7 +8,7 @@ import qrCode from "./components/qrCode.vue";
 import regist from "./components/regist.vue";
 import update from "./components/update.vue";
 import { initRouter } from "/@/router/utils";
-import { useNav } from "/@/layout/hooks/nav";
+import { useNav } from "/@/layout/hooks/useNav";
 import { message } from "@pureadmin/components";
 import type { FormInstance } from "element-plus";
 import { storageSession } from "@pureadmin/utils";