From be4e2d7c2b330c3b8991a0286ea16cc1285b9ec0 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Fri, 08 May 2026 17:47:32 +0800
Subject: [PATCH] feat: 微信小程序支持上传头像
---
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