feat: 家具初版

This commit is contained in:
砂糖
2025-09-03 11:55:00 +08:00
parent 623fa846a4
commit 82faee4f7c
44 changed files with 1824 additions and 943 deletions

View File

@@ -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;
})
},