优化代码

This commit is contained in:
不做码农
2022-04-23 21:56:20 +08:00
parent fd28add423
commit b56e150bf3
6 changed files with 77 additions and 66 deletions
+10 -10
View File
@@ -1,14 +1,14 @@
import autoImport from 'unplugin-auto-import/vite'
export default function createAutoImport() {
return autoImport({
imports: [
'vue',
'vue-router',
{
'vuex': ['useStore']
}
],
dts: false
})
return autoImport({
imports: [
'vue',
'vue-router',
{
'vuex': ['useStore']
}
],
dts: "src/auto-import.d.ts" // 生成 `auto-import.d.ts` 全局声明
})
}