fix: 修改代客下单仅下单后不展示历史下单数据
This commit is contained in:
@@ -398,10 +398,7 @@ async function createOrder(key) {
|
||||
if (res) {
|
||||
carts.clear();
|
||||
carts.dataReset();
|
||||
if (key == "only-create") {
|
||||
refresh();
|
||||
return;
|
||||
}
|
||||
|
||||
if (res.userId) {
|
||||
const userRes = await shopUserApi.get({ userId: res.userId });
|
||||
user.value = userRes;
|
||||
@@ -416,7 +413,9 @@ async function createOrder(key) {
|
||||
orderInfo.value = res1;
|
||||
carts.setOldOrder(res1);
|
||||
}
|
||||
|
||||
if (key == "only-create") {
|
||||
return;
|
||||
}
|
||||
showOrder.value = true;
|
||||
if (key == "wx-aiplay") {
|
||||
nextTick(() => {
|
||||
@@ -815,7 +814,7 @@ $pl: 30px;
|
||||
height: 100%;
|
||||
max-height: calc(100vh - 256px);
|
||||
.left {
|
||||
width: 330px;
|
||||
width: 350px;
|
||||
padding-right: 14px;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user