ruoyi-flex/ruoyi-ui/vite/plugins/auto-import.js

17 lines
406 B
JavaScript
Raw Normal View History

2023-09-05 16:18:41 +08:00
import autoImport from 'unplugin-auto-import/vite'
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers';
export default function createAutoImport() {
return autoImport({
resolvers: [ElementPlusResolver()],
imports: [
'vue',
'vue-router',
{
'vuex': ['useStore']
}
],
dts: false
})
}