Vanessa 2024-01-01 13:53:23 +08:00
parent 1b1bdcc9ea
commit d0dd7395b4
6 changed files with 10 additions and 0 deletions

View file

@ -7,6 +7,7 @@ import {transaction} from "../../wysiwyg/transaction";
import {genIconHTML} from "../util";
import {unicode2Emoji} from "../../../emoji";
import {getColIconByType} from "./col";
import {showMessage} from "../../../dialog/message";
const updateCol = (options: {
target: HTMLElement,
@ -58,6 +59,10 @@ const updateCol = (options: {
};
const genSearchList = (element: Element, keyword: string, avId: string, isRelation: boolean, cb?: () => void) => {
if (!isRelation && !avId) {
showMessage(window.siyuan.languages.selectRelation);
return
}
fetchPost(isRelation ? "/api/av/searchAttributeViewRelationKey" : "/api/av/searchAttributeViewNonRelationKey", {
avID: avId,
keyword