自动imports vue vue-router,build不检查

pull/366/head
Mrzzzhou 2023-03-19 21:22:28 +08:00
parent f70c93715b
commit 0973b67e00
3 changed files with 6 additions and 4 deletions

View File

@ -4,7 +4,8 @@
"private": true,
"scripts": {
"dev": "vite",
"build": "vue-tsc --noEmit && vite build",
"build": "vite build",
"build tsc": "vue-tsc --noEmit && vite build",
"serve": "vite preview"
},
"dependencies": {

View File

@ -64,9 +64,6 @@
</template>
<script setup lang="ts" name="baseform">
import { reactive, ref } from 'vue';
import { ElMessage } from 'element-plus';
import type { FormInstance, FormRules } from 'element-plus';
const options = [
{

View File

@ -10,6 +10,10 @@ export default defineConfig({
vue(),
VueSetupExtend(),
AutoImport({
imports: [
'vue',
'vue-router'
],
resolvers: [ElementPlusResolver()]
}),
Components({