This commit is contained in:
wangdan-fit2cloud 2025-07-14 10:10:20 +08:00
parent 368c175f62
commit e618b37309
3 changed files with 3 additions and 18 deletions

View File

@ -38,7 +38,7 @@
<el-button @click.prevent="dialogVisible = false" :loading="loading">
{{ $t('common.cancel') }}
</el-button>
<el-button type="primary" @click="submitValid(applicationFormRef)" :loading="loading">
<el-button type="primary" @click="submitHandle(applicationFormRef)" :loading="loading">
{{ $t('common.copy') }}
</el-button>
</span>
@ -144,21 +144,6 @@ const open = (data: any, folder: string) => {
dialogVisible.value = true
}
const submitValid = (formEl: FormInstance | undefined) => {
if (user.isEE() || user.isPE()) {
submitHandle(formEl)
} else {
common
.asyncGetValid(ValidType.Application, ValidCount.Application, loading)
.then(async (res: any) => {
if (res?.data) {
submitHandle(formEl)
} else {
MsgAlert(t('common.tip'), t('views.application.tip.professionalMessage'))
}
})
}
}
const submitHandle = async (formEl: FormInstance | undefined) => {
if (!formEl) return
await formEl.validate((valid) => {

View File

@ -117,7 +117,7 @@
</div>
</div>
</el-dropdown-item> -->
<el-dropdown-item @click="openCreateFolder" divided>
<el-dropdown-item @click="openCreateFolder" divided v-if="apiType === 'workspace'">
<div class="flex align-center">
<AppIcon iconName="app-folder" style="font-size: 32px"></AppIcon>
<div class="pre-wrap ml-4">

View File

@ -565,7 +565,7 @@ function importTool(file: any) {
})
.then(() => {
getList()
})
.catch((e: any) => {
if (e.code === 400) {