From 5cb8e7da6edbe6801f56635ec20342a326c1ed8a Mon Sep 17 00:00:00 2001 From: ko1234 Date: Wed, 6 Nov 2024 17:27:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=AA=E9=99=A4=E6=8C=89=E9=88=95=E9=BB=9E?= =?UTF-8?q?=E9=81=B8=E5=BE=8C=E6=96=B0=E5=A2=9E"=E7=A2=BA=E8=AA=8D?= =?UTF-8?q?=E5=88=AA=E9=99=A4"=20|=20=E8=83=BD=E6=BA=90=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E8=AA=9E=E8=A8=80=E5=88=87=E6=8F=9B=E6=99=82=E5=8D=B3=E6=99=82?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=20|=20=E6=A8=93=E5=B1=A4=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E8=88=87=E4=BF=AE=E6=94=B9bug=E4=BF=AE=E6=AD=A3=20|=20?= =?UTF-8?q?=E7=B3=BB=E7=B5=B1=E7=9B=A3=E6=8E=A7filter=E6=9A=AB=E6=99=82?= =?UTF-8?q?=E7=A7=BB=E9=99=A4device=5Fcoordinate=5F3d=E6=A2=9D=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 6 ++-- src/components/customUI/Toast.vue | 12 +++++-- src/components/navbar/Navbar.vue | 2 +- src/config/cn.json | 8 ++++- src/config/tw.json | 8 ++++- src/config/us.json | 8 ++++- .../AssetManagement/components/AssetTable.vue | 18 ++++++---- .../components/AssetTableModalRightInfo.vue | 22 +++++++----- .../accountManagement/components/Account.vue | 17 ++++++---- .../accountManagement/components/Role.vue | 20 +++++++---- .../AlertSetting/AlertNotifyTable.vue | 18 ++++++---- .../dashboard/components/DashboardStat.vue | 2 +- .../components/DashboardSysProgress.vue | 2 +- .../components/BillingDegreeChart.vue | 30 +++++++++++++--- .../components/CarbonEmissionChart.vue | 22 ++++++++++-- .../components/MonthlyElecBillChart.vue | 34 ++++++++++++++----- .../graphManagement/components/GraphTable.vue | 13 +++++-- .../operation/components/OperationTable.vue | 25 +++++++++----- src/views/system/System.vue | 5 ++- 19 files changed, 199 insertions(+), 73 deletions(-) diff --git a/src/App.vue b/src/App.vue index 522e0b6..6a1ec22 100644 --- a/src/App.vue +++ b/src/App.vue @@ -18,15 +18,16 @@ const cancelToastOpen = () => { }; }; -const openToast = (status, content, to = "body") => { +const openToast = (status, content, to = "body", confirm = null) => { isToastOpen.value = { open: true, content, status, to, + confirm, }; }; -provide("app_toast", { openToast }); +provide("app_toast", { openToast, cancelToastOpen });