cvc_touch/vite/plugins/auto-import.js
2026-11-16 16:35:22 +08:00

18 lines
396 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import autoImport from 'unplugin-auto-import/vite'
/** 为本地业务页面补全框架 API,所有页面均由当前项目编译。 */
export default function createAutoImport() {
return autoImport({
imports: [
'vue',
'vue-router',
'pinia',
{
'@/utils/dict': ['useDict'],
'@/utils/ruoyi': ['selectDictLabel']
}
],
dts: false
})
}