From 25e80590f6c0846bb386991e1e1b0e0a18d376fb Mon Sep 17 00:00:00 2001
From: LiuHao <liuhaoai545@gmail.com>
Date: 星期五, 23 六月 2023 20:49:22 +0800
Subject: [PATCH] update modal各方法参数类型

---
 src/plugins/modal.ts |   28 ++++++++++++++--------------
 1 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/src/plugins/modal.ts b/src/plugins/modal.ts
index b2d3b56..a8b0548 100644
--- a/src/plugins/modal.ts
+++ b/src/plugins/modal.ts
@@ -3,55 +3,55 @@
 let loadingInstance: LoadingInstance;
 export default {
   // 娑堟伅鎻愮ず
-  msg(content: string) {
+  msg(content: any) {
     ElMessage.info(content);
   },
   // 閿欒娑堟伅
-  msgError(content: string) {
+  msgError(content: any) {
     ElMessage.error(content);
   },
   // 鎴愬姛娑堟伅
-  msgSuccess(content: string) {
+  msgSuccess(content: any) {
     ElMessage.success(content);
   },
   // 璀﹀憡娑堟伅
-  msgWarning(content: string) {
+  msgWarning(content: any) {
     ElMessage.warning(content);
   },
   // 寮瑰嚭鎻愮ず
-  alert(content: string) {
+  alert(content: any) {
     ElMessageBox.alert(content, '绯荤粺鎻愮ず');
   },
   // 閿欒鎻愮ず
-  alertError(content: string) {
+  alertError(content: any) {
     ElMessageBox.alert(content, '绯荤粺鎻愮ず', { type: 'error' });
   },
   // 鎴愬姛鎻愮ず
-  alertSuccess(content: string) {
+  alertSuccess(content: any) {
     ElMessageBox.alert(content, '绯荤粺鎻愮ず', { type: 'success' });
   },
   // 璀﹀憡鎻愮ず
-  alertWarning(content: string) {
+  alertWarning(content: any) {
     ElMessageBox.alert(content, '绯荤粺鎻愮ず', { type: 'warning' });
   },
   // 閫氱煡鎻愮ず
-  notify(content: string) {
+  notify(content: any) {
     ElNotification.info(content);
   },
   // 閿欒閫氱煡
-  notifyError(content: string) {
+  notifyError(content: any) {
     ElNotification.error(content);
   },
   // 鎴愬姛閫氱煡
-  notifySuccess(content: string) {
+  notifySuccess(content: any) {
     ElNotification.success(content);
   },
   // 璀﹀憡閫氱煡
-  notifyWarning(content: string) {
+  notifyWarning(content: any) {
     ElNotification.warning(content);
   },
   // 纭绐椾綋
-  confirm(content: string): Promise<MessageBoxData> {
+  confirm(content: any): Promise<MessageBoxData> {
     return ElMessageBox.confirm(content, '绯荤粺鎻愮ず', {
       confirmButtonText: '纭畾',
       cancelButtonText: '鍙栨秷',
@@ -59,7 +59,7 @@
     });
   },
   // 鎻愪氦鍐呭
-  prompt(content: string) {
+  prompt(content: any) {
     return ElMessageBox.prompt(content, '绯荤粺鎻愮ず', {
       confirmButtonText: '纭畾',
       cancelButtonText: '鍙栨秷',

--
Gitblit v1.9.3