diff --git a/ui/src/components/dynamics-form/items/complex/ArrayObjectCard.vue b/ui/src/components/dynamics-form/items/complex/ArrayObjectCard.vue
index d3709bcd6..8fca1d45d 100644
--- a/ui/src/components/dynamics-form/items/complex/ArrayObjectCard.vue
+++ b/ui/src/components/dynamics-form/items/complex/ArrayObjectCard.vue
@@ -14,7 +14,7 @@
:parent_field="formField.field + '.' + index"
>
-
+
@@ -46,7 +46,7 @@ const props = defineProps<{
const render_data = () => {
return Promise.resolve(Result.success(props.formField.children as Array
))
}
-const deleteDateset = (item: any) => {
+const deleteDataset = (item: any) => {
_data.value = _data.value.filter((row) => row !== item)
}
const emit = defineEmits(['update:modelValue', 'change'])
diff --git a/ui/src/layout/components/breadcrumb/index.vue b/ui/src/layout/components/breadcrumb/index.vue
index d3b7419ac..e2089c864 100644
--- a/ui/src/layout/components/breadcrumb/index.vue
+++ b/ui/src/layout/components/breadcrumb/index.vue
@@ -150,7 +150,7 @@ function changeMenu(id: string) {
function getDataset() {
loading.value = true
dataset
- .asyncGetAllDateset()
+ .asyncGetAllDataset()
.then((res: any) => {
list.value = res.data
common.saveBreadcrumb(list.value)
diff --git a/ui/src/layout/components/top-bar/index.vue b/ui/src/layout/components/top-bar/index.vue
index 75fb1efbb..eff56f8f1 100644
--- a/ui/src/layout/components/top-bar/index.vue
+++ b/ui/src/layout/components/top-bar/index.vue
@@ -1,3 +1,4 @@
+·
-
@@ -20,6 +45,10 @@ import Avatar from './avatar/index.vue'
import { useRouter } from 'vue-router'
const router = useRouter()
const defaultTitle = import.meta.env.VITE_APP_TITLE
+
+function toUrl(url: string) {
+ window.open(url, '_blank')
+}
diff --git a/ui/src/views/dataset/index.vue b/ui/src/views/dataset/index.vue
index 663733ff5..0f347a64b 100644
--- a/ui/src/views/dataset/index.vue
+++ b/ui/src/views/dataset/index.vue
@@ -79,7 +79,7 @@
@click.stop="router.push({ path: `/dataset/${item.id}/setting` })"
>设置
- 删除
@@ -131,7 +131,7 @@ function searchHandle() {
getList()
}
-function deleteDateset(row: any) {
+function deleteDataset(row: any) {
MsgConfirm(
`是否删除知识库:${row.name} ?`,
`此知识库关联 ${row.application_mapping_count} 个应用,删除后无法恢复,请谨慎操作。`,
@@ -141,7 +141,7 @@ function deleteDateset(row: any) {
}
)
.then(() => {
- datasetApi.delDateset(row.id, loading).then(() => {
+ datasetApi.delDataset(row.id, loading).then(() => {
const index = datasetList.value.findIndex((v) => v.id === row.id)
datasetList.value.splice(index, 1)
MsgSuccess('删除成功')
@@ -152,7 +152,7 @@ function deleteDateset(row: any) {
function getList() {
datasetApi
- .getDateset(paginationConfig, searchValue.value && { name: searchValue.value }, loading)
+ .getDataset(paginationConfig, searchValue.value && { name: searchValue.value }, loading)
.then((res) => {
paginationConfig.total = res.data.total
datasetList.value = [...datasetList.value, ...res.data.records]
diff --git a/ui/src/views/dataset/step/StepFirst.vue b/ui/src/views/dataset/step/StepFirst.vue
index 00c6248df..b17d3755d 100644
--- a/ui/src/views/dataset/step/StepFirst.vue
+++ b/ui/src/views/dataset/step/StepFirst.vue
@@ -137,7 +137,7 @@ const onSubmit = async () => {
await webFormRef.value.validate((valid: any) => {
if (valid) {
const obj = { ...BaseFormRef.value.form, ...form.value }
- datasetApi.postWebDateset(obj, loading).then((res) => {
+ datasetApi.postWebDataset(obj, loading).then((res) => {
MsgSuccess('提交成功')
dataset.saveBaseInfo(null)
dataset.saveWebInfo(null)
diff --git a/ui/src/views/document/index.vue b/ui/src/views/document/index.vue
index 027cc4875..3c9b5e216 100644
--- a/ui/src/views/document/index.vue
+++ b/ui/src/views/document/index.vue
@@ -392,7 +392,7 @@ function getList(bool?: boolean) {
}
function getDetail() {
- dataset.asyncGetDatesetDetail(id, loading).then((res: any) => {
+ dataset.asyncGetDatasetDetail(id, loading).then((res: any) => {
datasetDetail.value = res.data
})
}
diff --git a/ui/src/views/hit-test/index.vue b/ui/src/views/hit-test/index.vue
index 748d5e2f7..ad4d4ac62 100644
--- a/ui/src/views/hit-test/index.vue
+++ b/ui/src/views/hit-test/index.vue
@@ -20,7 +20,8 @@