|
@@ -1,7 +1,7 @@
|
|
|
<script setup lang="ts">
|
|
|
-import { RouteRecordRaw, useRouter } from "vue-router";
|
|
|
+import { useRouter } from "vue-router";
|
|
|
import path from "path-browserify";
|
|
|
-import { isExternal } from "@/utils/index";
|
|
|
+import { isExternal } from "@/utils";
|
|
|
import AppLink from "./Link.vue";
|
|
|
import SvgIcon from "@/components/SvgIcon/index.vue";
|
|
|
import { SidebarRoutes } from "@/layout/components/Sidebar/types";
|
|
@@ -23,7 +23,6 @@ const props = defineProps({
|
|
|
required: true,
|
|
|
},
|
|
|
});
|
|
|
-//const {item} = props;
|
|
|
const itemRoute: SidebarRoutes = reactive(props.item);
|
|
|
const onlyOneChild = ref(); // 临时变量,唯一子路由
|
|
|
/**
|