未验证 提交 56fe11ec 编写于 作者: D Devosend 提交者: GitHub

[Fix][UI] Fix hive datasource doesn't show principal bug (#10876)

* fix hive datasource doesn't show principal bug

* delete IDataBase

* restore DataSourceController.java
上级 1edbb5e3
......@@ -30,7 +30,7 @@ import {
} from 'naive-ui'
import Modal from '@/components/modal'
import { useI18n } from 'vue-i18n'
import { useForm, datasourceTypeList } from './use-form'
import { useForm, datasourceType, datasourceTypeList } from './use-form'
import { useDetail } from './use-detail'
const props = {
......@@ -88,6 +88,12 @@ const DetailModal = defineComponent({
() => props.show,
async () => {
props.show && props.id && setFieldsValue(await queryById(props.id))
props.show &&
state.detailForm.type &&
changeType(
state.detailForm.type,
datasourceType[state.detailForm.type]
)
}
)
......
......@@ -169,7 +169,7 @@ export function useForm(id?: number) {
}
}
const datasourceType: IDataBaseOptionKeys = {
export const datasourceType: IDataBaseOptionKeys = {
MYSQL: {
value: 'MYSQL',
label: 'MYSQL',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册