✨ feat: 家具初版
This commit is contained in:
@@ -27,11 +27,12 @@ const useProductStore = defineStore('product', {
|
||||
}
|
||||
},
|
||||
fetchProductMap() {
|
||||
listProduct().then(res => {
|
||||
listProduct({ pageNum: 1, pageSize: 10000 }).then(res => {
|
||||
const map = {};
|
||||
res.data.forEach(item => {
|
||||
res.rows.forEach(item => {
|
||||
map[item.productId] = item;
|
||||
});
|
||||
console.log(map, res, 'productMap');
|
||||
this.productMap = map;
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user