Skip to content

Commit 18eff85

Browse files
fix: typo
1 parent a163757 commit 18eff85

File tree

8 files changed

+29
-29
lines changed

8 files changed

+29
-29
lines changed

ui/src/locales/lang/en-US/views/resource-authorization.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default {
1010
},
1111
delete: {
1212
button: 'Remove',
13-
confirmTitle: 'Wheather to remove the member:',
13+
confirmTitle: 'Whether to remove the member:',
1414
confirmMessage:
1515
"After removal, the member's knowledge base and application permissions will be revoked. ",
1616
},

ui/src/locales/lang/en-US/views/role.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ export default {
1919
member: {
2020
title: 'Members',
2121
add: 'Add Member',
22-
workspace: 'worksapce',
22+
workspace: 'workspace',
2323
role: 'role',
2424
delete: {
2525
button: 'remove',
26-
confirmTitle: 'Whether to remove the member:',
26+
confirmTitle: 'Whether to remove the member:',
2727
}
2828
}
29-
}
29+
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<folder-tree
4141
:data="folderList"
4242
:currentNodeKey="currentFolder?.id"
43-
@handleNodeClick="folderClickHandel"
43+
@handleNodeClick="folderClickHandle"
4444
class="p-8"
4545
v-loading="folderLoading"
4646
:canOperation="false"
@@ -182,7 +182,7 @@ const knowledgeList = ref<any[]>([])
182182
const currentFolder = ref<any>({})
183183
const folderLoading = ref(false)
184184
// 文件
185-
function folderClickHandel(row: any) {
185+
function folderClickHandle(row: any) {
186186
currentFolder.value = row
187187
knowledgeList.value = []
188188
if (currentFolder.value.id === 'share') return

ui/src/views/application/index.vue

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
:source="SourceTypeEnum.APPLICATION"
77
:data="folderList"
88
:currentNodeKey="folder.currentFolder?.id"
9-
@handleNodeClick="folderClickHandel"
9+
@handleNodeClick="folderClickHandle"
1010
@refreshTree="refreshFolder"
1111
class="p-8"
1212
/>
1313
</template>
1414
<ContentContainer>
1515
<template #header>
16-
<FolderBreadcrumb :folderList="folderList" @click="folderClickHandel" />
16+
<FolderBreadcrumb :folderList="folderList" @click="folderClickHandle" />
1717
</template>
1818
<template #search>
1919
<div class="flex">
@@ -31,15 +31,15 @@
3131
<el-input
3232
v-if="search_type === 'name'"
3333
v-model="search_form.name"
34-
@change="searchHandel"
34+
@change="searchHandle"
3535
:placeholder="$t('common.searchBar.placeholder')"
3636
style="width: 220px"
3737
clearable
3838
/>
3939
<el-select
4040
v-else-if="search_type === 'create_user'"
4141
v-model="search_form.create_user"
42-
@change="searchHandel"
42+
@change="searchHandle"
4343
clearable
4444
style="width: 220px"
4545
>
@@ -272,7 +272,7 @@ import { onMounted, ref, reactive, computed } from 'vue'
272272
import CreateApplicationDialog from '@/views/application/component/CreateApplicationDialog.vue'
273273
import CreateFolderDialog from '@/components/folder-tree/CreateFolderDialog.vue'
274274
import CopyApplicationDialog from '@/views/application/component/CopyApplicationDialog.vue'
275-
import ApplicaitonApi from '@/api/application/application'
275+
import ApplicationApi from '@/api/application/application'
276276
import { MsgSuccess, MsgConfirm, MsgError } from '@/utils/message'
277277
import useStore from '@/stores'
278278
import { t } from '@/locales'
@@ -414,7 +414,7 @@ function deleteApplication(row: any) {
414414
},
415415
)
416416
.then(() => {
417-
ApplicaitonApi.delApplication(row.id, loading).then(() => {
417+
ApplicationApi.delApplication(row.id, loading).then(() => {
418418
const index = applicationList.value.findIndex((v) => v.id === row.id)
419419
applicationList.value.splice(index, 1)
420420
MsgSuccess(t('common.deleteSuccess'))
@@ -424,7 +424,7 @@ function deleteApplication(row: any) {
424424
}
425425
426426
const exportApplication = (application: any) => {
427-
ApplicaitonApi.exportApplication(application.id, application.name, loading).catch((e) => {
427+
ApplicationApi.exportApplication(application.id, application.name, loading).catch((e) => {
428428
if (e.response.status !== 403) {
429429
e.response.data.text().then((res: string) => {
430430
MsgError(`${t('views.application.tip.ExportError')}:${JSON.parse(res).message}`)
@@ -438,7 +438,7 @@ const importApplication = (file: any) => {
438438
const formData = new FormData()
439439
formData.append('file', file.raw, file.name)
440440
elUploadRef.value.clearFiles()
441-
ApplicaitonApi.importApplication(formData, loading)
441+
ApplicationApi.importApplication(formData, loading)
442442
.then(async (res: any) => {
443443
if (res?.data) {
444444
applicationList.value = []
@@ -480,7 +480,7 @@ function clickFolder(item: any) {
480480
applicationList.value = []
481481
getList()
482482
}
483-
function folderClickHandel(row: any) {
483+
function folderClickHandle(row: any) {
484484
folder.setCurrentFolder(row)
485485
applicationList.value = []
486486
getList()
@@ -490,7 +490,7 @@ function refreshFolder() {
490490
getFolder()
491491
}
492492
493-
function searchHandel() {
493+
function searchHandle() {
494494
paginationConfig.current_page = 1
495495
applicationList.value = []
496496
getList()
@@ -500,7 +500,7 @@ function getList() {
500500
const params = {
501501
folder_id: folder.currentFolder?.id || 'default',
502502
}
503-
ApplicaitonApi.getApplication(paginationConfig, params, loading).then((res) => {
503+
ApplicationApi.getApplication(paginationConfig, params, loading).then((res) => {
504504
paginationConfig.total = res.data.total
505505
applicationList.value = [...applicationList.value, ...res.data.records]
506506
})

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919
<el-input
2020
v-if="search_type === 'name'"
2121
v-model="search_form.name"
22-
@change="searchHandel"
22+
@change="searchHandle"
2323
:placeholder="$t('common.searchBar.placeholder')"
2424
style="width: 220px"
2525
clearable
2626
/>
2727
<el-select
2828
v-else-if="search_type === 'create_user'"
2929
v-model="search_form.create_user"
30-
@change="searchHandel"
30+
@change="searchHandle"
3131
clearable
3232
style="width: 220px"
3333
>
@@ -481,7 +481,7 @@ function clickFolder(item: any) {
481481
folder.setCurrentFolder(item)
482482
}
483483
484-
function searchHandel() {
484+
function searchHandle() {
485485
paginationConfig.current_page = 1
486486
knowledge.setKnowledgeList([])
487487
getList()

ui/src/views/knowledge/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
:source="SourceTypeEnum.KNOWLEDGE"
77
:data="folderList"
88
:currentNodeKey="folder.currentFolder?.id"
9-
@handleNodeClick="folderClickHandel"
9+
@handleNodeClick="folderClickHandle"
1010
class="p-8"
1111
:shareTitle="$t('views.shared.shared_knowledge')"
1212
:showShared="permissionPrecise['is_share']()"
@@ -15,7 +15,7 @@
1515
</template>
1616
<KnowledgeListContainer>
1717
<template #header>
18-
<FolderBreadcrumb :folderList="folderList" @click="folderClickHandel" />
18+
<FolderBreadcrumb :folderList="folderList" @click="folderClickHandle" />
1919
</template>
2020
</KnowledgeListContainer>
2121
</LayoutContainer>
@@ -57,7 +57,7 @@ function getFolder(bool?: boolean) {
5757
})
5858
}
5959
60-
function folderClickHandel(row: any) {
60+
function folderClickHandle(row: any) {
6161
folder.setCurrentFolder(row)
6262
knowledge.setKnowledgeList([])
6363
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919
<el-input
2020
v-if="search_type === 'name'"
2121
v-model="search_form.name"
22-
@change="searchHandel"
22+
@change="searchHandle"
2323
:placeholder="$t('common.searchBar.placeholder')"
2424
style="width: 220px"
2525
clearable
2626
/>
2727
<el-select
2828
v-else-if="search_type === 'create_user'"
2929
v-model="search_form.create_user"
30-
@change="searchHandel"
30+
@change="searchHandle"
3131
clearable
3232
style="width: 220px"
3333
>
@@ -591,7 +591,7 @@ function clickFolder(item: any) {
591591
folder.setCurrentFolder(item)
592592
}
593593
594-
function searchHandel() {
594+
function searchHandle() {
595595
paginationConfig.current_page = 1
596596
tool.setToolList([])
597597
getList()

ui/src/views/tool/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
:source="SourceTypeEnum.TOOL"
77
:data="folderList"
88
:currentNodeKey="folder.currentFolder?.id"
9-
@handleNodeClick="folderClickHandel"
9+
@handleNodeClick="folderClickHandle"
1010
@refreshTree="refreshFolder"
1111
:shareTitle="$t('views.shared.shared_tool')"
1212
:showShared="permissionPrecise['is_share']()"
@@ -15,7 +15,7 @@
1515
</template>
1616
<ToolListContainer>
1717
<template #header>
18-
<FolderBreadcrumb :folderList="folderList" @click="folderClickHandel" />
18+
<FolderBreadcrumb :folderList="folderList" @click="folderClickHandle" />
1919
</template>
2020
</ToolListContainer>
2121
</LayoutContainer>
@@ -59,7 +59,7 @@ function getFolder(bool?: boolean) {
5959
})
6060
}
6161
62-
function folderClickHandel(row: any) {
62+
function folderClickHandle(row: any) {
6363
folder.setCurrentFolder(row)
6464
tool.setToolList([])
6565
}

0 commit comments

Comments
 (0)