From 08fcc710d0a2acb185b3477d72fe32aff6f2e29a Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Mon, 01 Dec 2025 16:23:03 +0800
Subject: [PATCH] feat:增加ws连接状态
---
src/utils/modals/index.js | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/utils/modals/index.js b/src/utils/modals/index.js
index a58172b..cc76b31 100644
--- a/src/utils/modals/index.js
+++ b/src/utils/modals/index.js
@@ -3,7 +3,7 @@
* @param {string} content 提示内容
* @param {object} option 配置
*/
-export function Toast(content, option = {}) {
+export function Toast (content, option = {}) {
uni.showToast({
title: content,
icon: "none",
@@ -34,7 +34,7 @@
* @param {string} content 提示内容
* @param {object} option 配置
*/
-export function Dialog(content, option = {}) {
+export function Dialog (content, option = {}) {
option.showCancel = false
return new Promise((resolve, reject) => {
uni.showModal({
@@ -42,10 +42,10 @@
content,
showCancel: false,
confirmColor: "#1677FF",
- success(res) {
+ success (res) {
if (res.confirm) resolve(res)
},
- fail() {
+ fail () {
reject(new Error("Alert 调用失败 !"))
},
...option
--
Gitblit v1.9.3