mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-11 12:07:42 +00:00
[improvement](semantic-fe) Update the field of /chat/conf interface, change 'dictionaryInfos' to 'knowledgeInfos'
This commit is contained in:
@@ -53,6 +53,7 @@
|
||||
],
|
||||
"dependencies": {
|
||||
"@ant-design/charts": "^1.3.3",
|
||||
"@ant-design/cssinjs": "^1.10.1",
|
||||
"@ant-design/icons": "^4.7.0",
|
||||
"@ant-design/pro-card": "^1.11.13",
|
||||
"@ant-design/pro-components": "^2.4.4",
|
||||
@@ -143,4 +144,4 @@
|
||||
"@types/react": "17.0.0"
|
||||
},
|
||||
"__npminstall_done": false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,13 +26,13 @@ const DimensionSearchVisibleModal: React.FC<Props> = ({
|
||||
const [dictRules, setDictRules] = useState<string>('');
|
||||
|
||||
useEffect(() => {
|
||||
const dictionaryInfos = themeData?.dictionaryInfos;
|
||||
if (Array.isArray(dictionaryInfos)) {
|
||||
const target = dictionaryInfos[0];
|
||||
const knowledgeInfos = themeData?.knowledgeInfos;
|
||||
if (Array.isArray(knowledgeInfos)) {
|
||||
const target = knowledgeInfos[0];
|
||||
if (Array.isArray(target?.ruleList)) {
|
||||
setDictRules(target.ruleList[0]);
|
||||
}
|
||||
const selectKeys = dictionaryInfos.map((item: any) => {
|
||||
const selectKeys = knowledgeInfos.map((item: any) => {
|
||||
return item.itemId;
|
||||
});
|
||||
setSelectedKeyList(selectKeys);
|
||||
@@ -48,7 +48,7 @@ const DimensionSearchVisibleModal: React.FC<Props> = ({
|
||||
}, [settingSourceList]);
|
||||
|
||||
const saveDictBatch = async () => {
|
||||
const dictionaryInfos = selectedKeyList.map((key: string) => {
|
||||
const knowledgeInfos = selectedKeyList.map((key: string) => {
|
||||
return {
|
||||
itemId: key,
|
||||
type: 'DIMENSION',
|
||||
@@ -62,7 +62,7 @@ const DimensionSearchVisibleModal: React.FC<Props> = ({
|
||||
saveDomainExtendQuery = editDomainExtend;
|
||||
}
|
||||
const { code, msg } = await saveDomainExtendQuery({
|
||||
dictionaryInfos,
|
||||
knowledgeInfos,
|
||||
domainId,
|
||||
id,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user