From 4bfa97e4fd7e3b8341c46941e535704931649982 Mon Sep 17 00:00:00 2001 From: u2nyakim Date: Fri, 29 Aug 2025 13:54:20 +0800 Subject: [PATCH] =?UTF-8?q?up.=20=E6=96=B0=E5=A2=9E=20sweetalert2=20?= =?UTF-8?q?=E5=8C=85,=20=E8=B6=85=E7=BA=A7=E5=8F=AF=E7=88=B1=E7=9A=84?= =?UTF-8?q?=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- z_ele/package.json | 1 + z_ele/src/App.vue | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/z_ele/package.json b/z_ele/package.json index 6aa3fa2..0cb6703 100644 --- a/z_ele/package.json +++ b/z_ele/package.json @@ -38,6 +38,7 @@ "nprogress": "0.2.0", "pinia": "3.0.2", "sortablejs": "1.15.6", + "sweetalert2": "^11.22.5", "tinymce": "^8.0.2", "vue": "3.5.15", "vue-echarts": "7.0.3", diff --git a/z_ele/src/App.vue b/z_ele/src/App.vue index 374a505..94281e5 100644 --- a/z_ele/src/App.vue +++ b/z_ele/src/App.vue @@ -22,7 +22,7 @@ import { useLocale } from '@/i18n/use-locale'; import WebsocketState from '@/components/WebsocketState/index.vue'; import LockScreenState from '@/components/LockScreenState/index.vue'; - + // import Swal from 'sweetalert2' /** 组件全局配置 */ const { tableConfig } = useGlobalConfig(); @@ -33,4 +33,10 @@ /** 国际化配置 */ const { elLocale, eleLocale } = useLocale(); + // Swal.fire({ + // title: 'Error!', + // text: 'Do you want to continue', + // icon: 'error', + // confirmButtonText: 'Cool' + // })