[Core] [History] Fixed code

This commit is contained in:
qianmoQ 2024-04-11 00:03:01 +08:00
parent 761a43ab9b
commit 64310cd563
2 changed files with 3 additions and 2 deletions

View File

@ -22,6 +22,7 @@ export interface SourceModel
updateTime?: string
configures?: Map<string, string>
schema?: any
code?: string
}
export class SourceRequest

View File

@ -360,7 +360,7 @@ export default defineComponent({
id: null,
name: null as string | null | undefined,
description: null as string | null | undefined,
query: null,
query: null as string | null,
syncMode: 'MANUAL',
columns: [] as any[],
source: { id: null },
@ -434,7 +434,7 @@ export default defineComponent({
DatasetService.saveOrUpdate(this.formState as unknown as DatasetModel)
.then(response => {
if (response.status) {
ToastUtils.success(`${ this.$t('dataset.tip.publishSuccess').replace('$VALUE', this.formState.name) }`)
ToastUtils.success(`${ this.$t('dataset.tip.publishSuccess').replace('$VALUE', this.formState.name as string) }`)
this.$router.push('/admin/dataset')
}
})