From a1fa3a29d9191b511b6f0c26053e5f2d1a0aef1b Mon Sep 17 00:00:00 2001 From: ycy <2861518472@qq.com> Date: Thu, 11 Apr 2024 11:42:12 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E7=A5=A8=E6=8D=AE=E9=A2=86=E7=94=A8=E9=9C=80=E8=A6=81=E5=88=B7?= =?UTF-8?q?=E6=96=B0=E4=B8=A4=E6=AC=A1=E9=A1=B5=E9=9D=A2=E6=89=8D=E4=BC=9A?= =?UTF-8?q?=E5=87=BA=E7=8E=B0=E6=95=B0=E6=8D=AE=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/finance-bill-manage/billCancel.vue | 1 + src/pages/finance-bill-manage/billReceipt.vue | 9 +++++---- src/stores/billReceipt.js | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/pages/finance-bill-manage/billCancel.vue b/src/pages/finance-bill-manage/billCancel.vue index 4c1281c..9bf4deb 100644 --- a/src/pages/finance-bill-manage/billCancel.vue +++ b/src/pages/finance-bill-manage/billCancel.vue @@ -465,3 +465,4 @@ onMounted(() => { justify-content: space-between; } +@/pages/finance-bill-manage/billCancel diff --git a/src/pages/finance-bill-manage/billReceipt.vue b/src/pages/finance-bill-manage/billReceipt.vue index 6f95f8d..a6d912e 100644 --- a/src/pages/finance-bill-manage/billReceipt.vue +++ b/src/pages/finance-bill-manage/billReceipt.vue @@ -392,12 +392,13 @@ const refresh = () => { getTableData(); }; // 判断menuManagement里面是否存在数据 -const getPersonName = () => { +const getPersonName = async () => { let arr = JSON.parse(localStorage.getItem("ReceiptList")); if (arr) { personName.value = arr.personName; } else { - personList(); + await personList(); + getTableData(); } }; // 判断menuManagement里面是否存在数据 @@ -429,8 +430,8 @@ const getTableData = async () => { }; onMounted(async () => { - getPersonName(); - getTableData(); + await getPersonName(); + await getTableData(); }); diff --git a/src/stores/billReceipt.js b/src/stores/billReceipt.js index ebb37d1..5cffc04 100644 --- a/src/stores/billReceipt.js +++ b/src/stores/billReceipt.js @@ -16,11 +16,11 @@ export const useReceiptList = defineStore("ReceiptList", { async getPersonNameList() { const { data } = await reqPersonName(); this.personName = data; - console.log(this.personName); return this.personName; }, async getReceiptList(obj) { + console.log("222"); const { data } = await reqReceiptList(obj); this.receiptList = data; return this.receiptList;