Merge remote-tracking branch 'origin/master'

pull/80/MERGE
YunaiV 2024-08-15 09:24:49 +08:00
commit 0575bd56b0
2 changed files with 7 additions and 2 deletions

View File

@ -49,7 +49,6 @@
});
//
const bgStyle = computed(() => {
console.log(props.data)
// props.styles
const {
bgType,

View File

@ -57,7 +57,13 @@ const cart = defineStore({
// 移除购物车
async delete(ids) {
const { code } = await CartApi.deleteCart(ids.join(','));
let idsTemp = '';
if (Array.isArray(ids)) {
idsTemp = ids.join(',');
} else {
idsTemp = ids;
}
const { code } = await CartApi.deleteCart(idsTemp);
if (code === 0) {
await this.getList();
}