Skip to content

Commit e618b37

Browse files
fix: tip
1 parent 368c175 commit e618b37

File tree

3 files changed

+3
-18
lines changed

3 files changed

+3
-18
lines changed

ui/src/views/application/component/CopyApplicationDialog.vue

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<el-button @click.prevent="dialogVisible = false" :loading="loading">
3939
{{ $t('common.cancel') }}
4040
</el-button>
41-
<el-button type="primary" @click="submitValid(applicationFormRef)" :loading="loading">
41+
<el-button type="primary" @click="submitHandle(applicationFormRef)" :loading="loading">
4242
{{ $t('common.copy') }}
4343
</el-button>
4444
</span>
@@ -144,21 +144,6 @@ const open = (data: any, folder: string) => {
144144
dialogVisible.value = true
145145
}
146146
147-
const submitValid = (formEl: FormInstance | undefined) => {
148-
if (user.isEE() || user.isPE()) {
149-
submitHandle(formEl)
150-
} else {
151-
common
152-
.asyncGetValid(ValidType.Application, ValidCount.Application, loading)
153-
.then(async (res: any) => {
154-
if (res?.data) {
155-
submitHandle(formEl)
156-
} else {
157-
MsgAlert(t('common.tip'), t('views.application.tip.professionalMessage'))
158-
}
159-
})
160-
}
161-
}
162147
const submitHandle = async (formEl: FormInstance | undefined) => {
163148
if (!formEl) return
164149
await formEl.validate((valid) => {

ui/src/views/knowledge/component/KnowledgeListContainer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
</div>
118118
</div>
119119
</el-dropdown-item> -->
120-
<el-dropdown-item @click="openCreateFolder" divided>
120+
<el-dropdown-item @click="openCreateFolder" divided v-if="apiType === 'workspace'">
121121
<div class="flex align-center">
122122
<AppIcon iconName="app-folder" style="font-size: 32px"></AppIcon>
123123
<div class="pre-wrap ml-4">

ui/src/views/tool/component/ToolListContainer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ function importTool(file: any) {
565565
})
566566
.then(() => {
567567
getList()
568-
568+
569569
})
570570
.catch((e: any) => {
571571
if (e.code === 400) {

0 commit comments

Comments
 (0)