mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-30 17:52:48 +00:00
fix: tip
This commit is contained in:
parent
368c175f62
commit
e618b37309
|
|
@ -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) => {
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -565,7 +565,7 @@ function importTool(file: any) {
|
|||
})
|
||||
.then(() => {
|
||||
getList()
|
||||
|
||||
|
||||
})
|
||||
.catch((e: any) => {
|
||||
if (e.code === 400) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue