sync:每次进入购物车页面请求列表 b858147579

pull/132/MERGE
YunaiV 2025-04-27 23:51:08 +08:00
parent 39e04ae78d
commit c10a1c9adc
1 changed files with 9 additions and 0 deletions

View File

@ -111,6 +111,7 @@
<script setup>
import sheep from '@/sheep';
import { onShow } from '@dcloudio/uni-app';
import SpuApi from '@/sheep/api/product/spu';
import { computed, reactive } from 'vue';
import { fen2yuan } from '@/sheep/hooks/useGoods';
@ -239,6 +240,14 @@
async function onDelete() {
cart.delete(state.selectedIds);
}
function getCartList() {
cart.getList();
}
onShow(() => {
getCartList();
});
</script>
<style lang="scss" scoped>