fix: category store mapping
This commit is contained in:
@@ -22,7 +22,7 @@ export class Category {
|
||||
async getData() {
|
||||
try {
|
||||
const response = await http.get(`/product/categories?page=${this.page}&pageSize=${this.pageSize}`);
|
||||
this.data = response.body.data .map((item, idx) => {
|
||||
this.data = response.body.data.map((item, idx) => {
|
||||
item.key = idx;
|
||||
return item
|
||||
}) ?? []
|
||||
|
Reference in New Issue
Block a user