mirror of
https://github.com/keven1024/015.git
synced 2026-05-26 07:08:02 +00:00
refactor(front): update FormButton click handlers to support async functionality
This commit is contained in:
@@ -57,7 +57,7 @@ const props = defineProps<{
|
||||
rules="required" />
|
||||
</div>
|
||||
</div>
|
||||
<FormButton @click="(form) => {
|
||||
<FormButton @click="async (form) => {
|
||||
onFileHandle({ type: 'file-share', config: values })
|
||||
hide()
|
||||
}">提交</FormButton>
|
||||
|
||||
@@ -9,7 +9,7 @@ const emit = defineEmits<{
|
||||
(e: 'change', key: string): void
|
||||
}>()
|
||||
|
||||
const handleFormSubmit = (form: any) => {
|
||||
const handleFormSubmit = async (form: any) => {
|
||||
const { file } = form?.values || {}
|
||||
showDrawer({
|
||||
render: ({ hide }) => h(FileShareDrawer, {
|
||||
|
||||
@@ -26,7 +26,7 @@ import { cx } from 'class-variance-authority'
|
||||
</Button>
|
||||
</div>
|
||||
<div class="flex flex-row gap-3">
|
||||
<FormButton @click="(form) => {
|
||||
<FormButton @click="async (form) => {
|
||||
const { text } = form?.values || {}
|
||||
showDrawer({ render: ({ hide }) => h(TextShareDrawer, { hide, text }) })
|
||||
}">
|
||||
|
||||
Reference in New Issue
Block a user