fix: cannot search shared product
This commit is contained in:
parent
9f7b4340eb
commit
c44914c22f
1 changed files with 1 additions and 1 deletions
|
|
@ -522,13 +522,13 @@ async function searchProduct(isAdd: boolean = true) {
|
|||
const res = await fetchListProduct({
|
||||
query: inputSearchWorkProduct.value,
|
||||
productGroupId: currentIdGroup.value,
|
||||
shared: true,
|
||||
});
|
||||
|
||||
if (res) {
|
||||
if (isAdd) {
|
||||
resultSearchProduct.value = res.result;
|
||||
}
|
||||
|
||||
if (!isAdd) {
|
||||
product.value = res.result.map((v) => {
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue