style: 采用 import type 语法导入类型

This commit is contained in:
pany 2022-09-13 14:26:08 +08:00
parent dbbb85fef3
commit bd6a018aab
2 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
import { Directive } from "vue" import type { Directive } from "vue"
import { useUserStoreHook } from "@/store/modules/user" import { useUserStoreHook } from "@/store/modules/user"
/** 权限指令 */ /** 权限指令 */

View File

@ -1,5 +1,6 @@
<script lang="ts" setup> <script lang="ts" setup>
import { computed, PropType } from "vue" import { computed } from "vue"
import type { PropType } from "vue"
import type { RouteRecordRaw } from "vue-router" import type { RouteRecordRaw } from "vue-router"
import SidebarItemLink from "./SidebarItemLink.vue" import SidebarItemLink from "./SidebarItemLink.vue"
import { isExternal } from "@/utils/validate" import { isExternal } from "@/utils/validate"