feat(mini): v4.0.8 客服卡片主包落地、定位误报修复,合伙人微信内预览保存海报
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -130,10 +130,12 @@ export function toast(title: string, icon: 'success' | 'error' | 'none' = 'none'
|
||||
const text = title.trim();
|
||||
if (!text) return;
|
||||
if (icon !== 'success' && showFloatingToast(text)) {
|
||||
void Taro.hideToast();
|
||||
void Promise.resolve(Taro.hideToast() as void | Promise<unknown>).catch(() => {});
|
||||
return;
|
||||
}
|
||||
Taro.showToast({ title: text, icon, duration: 1800 });
|
||||
void Promise.resolve(
|
||||
Taro.showToast({ title: text, icon, duration: 1800 }) as void | Promise<unknown>,
|
||||
).catch(() => {});
|
||||
}
|
||||
|
||||
export type SessionPayload = {
|
||||
|
||||
Reference in New Issue
Block a user