From aa5530f51b733c6550dba59877a0301763be3d21 Mon Sep 17 00:00:00 2001
From: RuoYi <yzz_ivy@163.com>
Date: Sun, 22 Mar 2026 15:03:02 +0800
Subject: [PATCH] 优化页签功能&支持全屏按钮操作
---
ruoyi-ui/src/plugins/modal.js | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/ruoyi-ui/src/plugins/modal.js b/ruoyi-ui/src/plugins/modal.js
index 7df61a8..99cea2e 100644
--- a/ruoyi-ui/src/plugins/modal.js
+++ b/ruoyi-ui/src/plugins/modal.js
@@ -1,6 +1,6 @@
import { Message, MessageBox, Notification, Loading } from 'element-ui'
-let loadingInstance;
+let loadingInstance
export default {
// 消息提示
@@ -41,7 +41,7 @@
},
// 错误通知
notifyError(content) {
- Notification.error(content);
+ Notification.error(content)
},
// 成功通知
notifySuccess(content) {
@@ -59,6 +59,14 @@
type: "warning",
})
},
+ // 提交内容
+ prompt(content) {
+ return MessageBox.prompt(content, "系统提示", {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: "warning",
+ })
+ },
// 打开遮罩层
loading(content) {
loadingInstance = Loading.service({
@@ -70,6 +78,6 @@
},
// 关闭遮罩层
closeLoading() {
- loadingInstance.close();
+ loadingInstance.close()
}
}
--
Gitblit v1.9.3