Browse Source

add 增加cache类型声明

LiuHao 1 year ago
parent
commit
538c52a3ad
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/types/module.d.ts

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

@@ -2,6 +2,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 cache from '@/plugins/cache';
 import type animate from '@/animate';
 import type { useDict } from '@/utils/dict';
 import type { addDateRange, handleTree, selectDictLabel, selectDictLabels, parseTime } from '@/utils/ruoyi';
@@ -15,6 +16,7 @@ declare module '@vue/runtime-core' {
     $tab: typeof tab;
     $download: typeof download;
     $auth: typeof auth;
+    $cache: typeof cache;
     animate: typeof animate;
 
     useDict: typeof useDict;