瀏覽代碼

style: 代码格式化5

chaooo 2 年之前
父節點
當前提交
9dd266521e
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      src/layout/components/Sidebar/SidebarItem.vue

+ 2 - 3
src/layout/components/Sidebar/SidebarItem.vue

@@ -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(); // 临时变量,唯一子路由
 /**