问题修复

This commit is contained in:
2025-12-05 19:22:28 +08:00
parent 2c2a87ab19
commit 7fdabf1507
10 changed files with 442 additions and 345 deletions

View File

@@ -523,10 +523,7 @@ function onMessage() {
);
}
if (
msg.status == 0 &&
msg.type != "time_discount"
) {
if (msg.status == 0 && msg.type != "time_discount") {
console.log("msg", msg);
infoBox.showToast(msg.msg || "添加失败");
data.isGoodsAdd = true;
@@ -646,7 +643,7 @@ async function getHistoryOrderDetail() {
if (shopInfo.registerType == "before") {
return;
}
if(!data.table.tableCode){
if (!data.table.tableCode) {
return;
}
data.historyOrder = [];
@@ -1962,10 +1959,6 @@ onShow(() => {
data.userInfo = shopif;
}
}
// 判断是否token过期,是否有名字
if (!data.userInfo.shopName) {
loginShowOut();
}
getHistoryOrderDetail();
nextTick(() => {
@@ -2018,7 +2011,7 @@ async function getLimit() {
}
async function getTableDetail() {
if(!data.table.tableCode){
if (!data.table.tableCode) {
return;
}
let res = await $returnTableDetail({