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({
|
const res = await fetchListProduct({
|
||||||
query: inputSearchWorkProduct.value,
|
query: inputSearchWorkProduct.value,
|
||||||
productGroupId: currentIdGroup.value,
|
productGroupId: currentIdGroup.value,
|
||||||
|
shared: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (res) {
|
if (res) {
|
||||||
if (isAdd) {
|
if (isAdd) {
|
||||||
resultSearchProduct.value = res.result;
|
resultSearchProduct.value = res.result;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isAdd) {
|
if (!isAdd) {
|
||||||
product.value = res.result.map((v) => {
|
product.value = res.result.map((v) => {
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue