hookehuyr

refactor(上传组件): 移除失败时的错误提示弹窗

...@@ -259,11 +259,11 @@ const chooseMedia = () => { ...@@ -259,11 +259,11 @@ const chooseMedia = () => {
259 }, 259 },
260 fail: (err) => { 260 fail: (err) => {
261 console.error('选择媒体文件失败:', err); 261 console.error('选择媒体文件失败:', err);
262 - Taro.showToast({ 262 + // Taro.showToast({
263 - title: '选择文件失败', 263 + // title: '选择文件失败',
264 - icon: 'error', 264 + // icon: 'error',
265 - duration: 2000 265 + // duration: 2000
266 - }); 266 + // });
267 } 267 }
268 }); 268 });
269 }; 269 };
......
...@@ -269,11 +269,11 @@ const chooseMedia = () => { ...@@ -269,11 +269,11 @@ const chooseMedia = () => {
269 }, 269 },
270 fail: (err) => { 270 fail: (err) => {
271 console.error('选择媒体文件失败:', err); 271 console.error('选择媒体文件失败:', err);
272 - Taro.showToast({ 272 + // Taro.showToast({
273 - title: '选择文件失败', 273 + // title: '选择文件失败',
274 - icon: 'error', 274 + // icon: 'error',
275 - duration: 2000 275 + // duration: 2000
276 - }); 276 + // });
277 } 277 }
278 }); 278 });
279 }; 279 };
......