diff --git a/components/share/DefaultSharePage.vue b/components/share/DefaultSharePage.vue index 69aaaaa..a886ce4 100644 --- a/components/share/DefaultSharePage.vue +++ b/components/share/DefaultSharePage.vue @@ -100,15 +100,7 @@ export default { }, async sharePage() { - if (!this.qrCodeImage) { - uni.showToast({ - title: '二维码尚未生成', - icon: 'none', - }) - return - } - - uni.showLoading({ title: '加载中...' }) + uni.showLoading({ title: '加载中...', mask: true }) try { this.shareButtonShow = false @@ -116,8 +108,6 @@ export default { await this.capturePageWithHtml2Canvas() } catch (error) { - uni.hideLoading() - uni.showToast({ title: '图片生成失败,请稍后重试', icon: 'none' }) console.error('sharePage error:', error) } finally { // 恢复按钮显示