feat:统一两端 data.ts 关联数据的加载逻辑(写法)

This commit is contained in:
YunaiV
2025-10-18 17:14:28 +08:00
parent 2288748ca8
commit 769510c4f6
12 changed files with 29 additions and 60 deletions

View File

@@ -10,11 +10,9 @@ import { useUserStore } from '@vben/stores';
import { getSimpleDeliveryPickUpStoreList } from '#/api/mall/trade/delivery/pickUpStore';
import { getRangePickerDefaultProps } from '#/utils';
// TODO @芋艿:统一风格;
/** 关联数据 **/
const userStore = useUserStore();
const pickUpStoreList = ref<MallDeliveryPickUpStoreApi.PickUpStore[]>([]);
/** 自提门店列表 */
getSimpleDeliveryPickUpStoreList().then((res) => {
pickUpStoreList.value = res;
// 移除自己无法核销的门店