自动imports vue vue-router,build不检查
parent
f70c93715b
commit
0973b67e00
|
@ -4,7 +4,8 @@
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vue-tsc --noEmit && vite build",
|
"build": "vite build",
|
||||||
|
"build tsc": "vue-tsc --noEmit && vite build",
|
||||||
"serve": "vite preview"
|
"serve": "vite preview"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -64,9 +64,6 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts" name="baseform">
|
<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 = [
|
const options = [
|
||||||
{
|
{
|
||||||
|
|
|
@ -10,6 +10,10 @@ export default defineConfig({
|
||||||
vue(),
|
vue(),
|
||||||
VueSetupExtend(),
|
VueSetupExtend(),
|
||||||
AutoImport({
|
AutoImport({
|
||||||
|
imports: [
|
||||||
|
'vue',
|
||||||
|
'vue-router'
|
||||||
|
],
|
||||||
resolvers: [ElementPlusResolver()]
|
resolvers: [ElementPlusResolver()]
|
||||||
}),
|
}),
|
||||||
Components({
|
Components({
|
||||||
|
|
Loading…
Reference in New Issue