mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
This commit is contained in:
@@ -9,8 +9,11 @@ import {updateAttrViewCellAnimation} from "./action";
|
||||
import {focusBlock} from "../../util/selection";
|
||||
import {setPosition} from "../../../util/setPosition";
|
||||
|
||||
const genSearchList = (element: Element, keyword: string, avId: string, excludes = true, cb?: () => void) => {
|
||||
fetchPost("/api/av/searchAttributeView", {keyword, excludes: excludes ? [avId] : undefined}, (response) => {
|
||||
const genSearchList = (element: Element, keyword: string, avId?: string, excludes = true, cb?: () => void) => {
|
||||
fetchPost("/api/av/searchAttributeView", {
|
||||
keyword,
|
||||
excludes: (excludes && avId) ? [avId] : undefined
|
||||
}, (response) => {
|
||||
let html = "";
|
||||
response.data.results.forEach((item: {
|
||||
avID: string
|
||||
|
||||
Reference in New Issue
Block a user