修复在vue3+vite3 模块中使用顶层await打包的时候报错

This commit is contained in:
puhui999
2023-04-04 22:08:17 +08:00
parent 5f6dc3c99f
commit 05019837d0
4 changed files with 25 additions and 3 deletions

View File

@ -1,5 +1,11 @@
<template>
<Dialog :title="dialogTitle" v-model="dialogVisible" :scroll="true" :width="800" :max-height="500">
<Dialog
:title="dialogTitle"
v-model="dialogVisible"
:scroll="true"
:width="800"
:max-height="500"
>
<Form ref="formRef" :schema="allSchemas.formSchema" :rules="rules" v-loading="formLoading" />
<template #footer>
<el-button @click="submitForm" type="primary" :disabled="formLoading"> </el-button>
@ -9,7 +15,7 @@
</template>
<script setup lang="ts">
import * as MailTemplateApi from '@/api/system/mail/template'
import { rules, allSchemas } from './template.data'
import { allSchemas, rules } from './template.data'
const { t } = useI18n() // 国际化
const message = useMessage() // 消息弹窗