fix: 代客下单问题修复,本地测试服链接修改,为解决部分接口自动添加了部分路由前缀导致404,部分接口前缀增加/

This commit is contained in:
2025-10-10 18:13:38 +08:00
parent 6be93661f4
commit 7ceca3b917
6 changed files with 118 additions and 103 deletions

View File

@@ -94,7 +94,7 @@ export const useCartsStore = defineStore("carts", () => {
const vipUser = ref<{ id?: string | number, isVip?: boolean }>({});
function changeUser(user: any) {
vipUser.value = user;
userPoints.value = 0;
payParamsInit()
}
// 就餐类型
@@ -382,10 +382,10 @@ export const useCartsStore = defineStore("carts", () => {
}
function changeSelCart(cart: CartsState) {
console.log(cart)
if (!cart.id) {
return
}
if (cart.placeNum) {
selPlaceNum.value = cart.placeNum
isOldOrder.value = true
@@ -395,11 +395,7 @@ export const useCartsStore = defineStore("carts", () => {
})
return
}
if (cart.is_gift) {
isSelGift.value = true
} else {
isSelGift.value = false
}
if (cart.is_gift) {
isSelGift.value = true
@@ -408,7 +404,9 @@ export const useCartsStore = defineStore("carts", () => {
} else {
isSelGift.value = false
isOldOrder.value = false
selListIndex.value = list.value.findIndex((item: CartsState) => item.id === cart.id);
console.log('selListIndex.value', selListIndex.value)
}
}