This commit is contained in:
parent
4ada758a30
commit
d26e78f9d1
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue