From 0e9e3c9247dc9bdb6da9ed7de3b4c568801f7882 Mon Sep 17 00:00:00 2001 From: imeepos Date: Thu, 4 Sep 2025 14:37:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E6=97=B6=E4=B8=8D=E5=BF=85=E8=A6=81=E7=9A=84?= =?UTF-8?q?loading=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除点击模板时立即显示的"选择图片中..."loading提示 - 保留选择图片后上传时的loading状态 - 优化用户体验,避免不必要的loading显示 --- src/pages/home/index.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/pages/home/index.tsx b/src/pages/home/index.tsx index b785785..f6faca2 100644 --- a/src/pages/home/index.tsx +++ b/src/pages/home/index.tsx @@ -1,4 +1,4 @@ -import { View, Text, ScrollView } from '@tarojs/components' +import { View, ScrollView } from '@tarojs/components' import { useEffect, useState } from 'react' import Taro, { navigateTo } from '@tarojs/taro' import { useAppDispatch, useAppSelector } from '../../hooks/redux' @@ -63,12 +63,6 @@ export default function Home() { try { setLoading(true) - // 显示loading提示 - Taro.showLoading({ - title: '选择图片中...', - mask: true - }) - // 选择并上传图片 const url = await sdk.chooseAndUploadImage({ onImageSelected: () => {