feat(DefaultSharePage): loading add mask

This commit is contained in:
woody 2025-07-15 10:50:48 +08:00
parent 661665f2a4
commit c030eded16
1 changed files with 1 additions and 11 deletions

View File

@ -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 {
//