diff --git a/.env b/.env index db4e7e9..389397f 100644 --- a/.env +++ b/.env @@ -7,4 +7,4 @@ VITE_APP_TITLE = 借还柜 VITE_ROUTER_HISTORY = hash ## 是否开启 console 调试工具 -VITE_CONSOLE = true +VITE_CONSOLE = false diff --git a/src/pages/order/index.vue b/src/pages/order/index.vue index aace50f..d55a2b7 100644 --- a/src/pages/order/index.vue +++ b/src/pages/order/index.vue @@ -1,7 +1,10 @@ - diff --git a/src/pinia/stores/order.ts b/src/pinia/stores/order.ts index 9c9a222..67506e5 100644 --- a/src/pinia/stores/order.ts +++ b/src/pinia/stores/order.ts @@ -3,10 +3,12 @@ import { getOrdersByOpenIdApi } from "@@/apis/shop" import type { ShopOrderEntity, ShopOrderGoodsEntity, Goods } from "@@/apis/shop/type" export interface Order extends ShopOrderEntity { - goodsList: Array<{ - goodsInfo: Goods - orderGoods: ShopOrderGoodsEntity - }> + goodsList: Array +} + +export interface OrderGoods { + goodsInfo: Goods + orderGoods: ShopOrderGoodsEntity } export const useOrderStore = defineStore("order", () => { diff --git a/types/auto/components.d.ts b/types/auto/components.d.ts index 436f172..39a8321 100644 --- a/types/auto/components.d.ts +++ b/types/auto/components.d.ts @@ -27,8 +27,6 @@ declare module 'vue' { VanNavBar: typeof import('vant/es')['NavBar'] VanPicker: typeof import('vant/es')['Picker'] VanPopup: typeof import('vant/es')['Popup'] - VanRadio: typeof import('vant/es')['Radio'] - VanRadioGroup: typeof import('vant/es')['RadioGroup'] VanSidebar: typeof import('vant/es')['Sidebar'] VanSidebarItem: typeof import('vant/es')['SidebarItem'] VanTabbar: typeof import('vant/es')['Tabbar']