瀏覽代碼

add auth类型声明

LiuHao 2 年之前
父節點
當前提交
7f68832edd
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/types/module.d.ts

+ 2 - 0
src/types/module.d.ts

@@ -1,6 +1,7 @@
 import type modal from '@/plugins/modal';
 import type tab from '@/plugins/tab';
 import type download from '@/plugins/download';
+import type auth from '@/plugins/auth';
 import type animate from '@/animate';
 import type { useDict } from '@/utils/dict';
 import type { addDateRange, handleTree, selectDictLabel, selectDictLabels, parseTime } from '@/utils/ruoyi';
@@ -13,6 +14,7 @@ declare module '@vue/runtime-core' {
     $modal: typeof modal;
     $tab: typeof tab;
     $download: typeof download;
+    $auth: typeof auth;
     animate: typeof animate;
 
     useDict: typeof useDict;