hookehuyr

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

......@@ -259,11 +259,11 @@ const chooseMedia = () => {
},
fail: (err) => {
console.error('选择媒体文件失败:', err);
Taro.showToast({
title: '选择文件失败',
icon: 'error',
duration: 2000
});
// Taro.showToast({
// title: '选择文件失败',
// icon: 'error',
// duration: 2000
// });
}
});
};
......@@ -490,4 +490,4 @@ const saveMedia = async () => {
background-color: #f8f9fa;
overflow-y: auto;
}
</style>
\ No newline at end of file
</style>
......
......@@ -269,11 +269,11 @@ const chooseMedia = () => {
},
fail: (err) => {
console.error('选择媒体文件失败:', err);
Taro.showToast({
title: '选择文件失败',
icon: 'error',
duration: 2000
});
// Taro.showToast({
// title: '选择文件失败',
// icon: 'error',
// duration: 2000
// });
}
});
};
......