bugfix
This commit is contained in:
@@ -64,13 +64,18 @@ Page({
|
||||
this.setData({ confirmVisible: true })
|
||||
},
|
||||
|
||||
// 取消生成:回到场景选择抽屉,避免停在无任何可渲染内容的空页
|
||||
onConfirmCancel() {
|
||||
this.setData({ confirmVisible: false })
|
||||
this.setData({ confirmVisible: false, showSceneSheet: true })
|
||||
},
|
||||
|
||||
onConfirmGenerate(e: WechatMiniprogram.CustomEvent) {
|
||||
this.setData({ confirmVisible: false })
|
||||
if (e.detail.value !== 'ok') return
|
||||
if (e.detail.value !== 'ok') {
|
||||
// 兜底:非「开始生成」按钮同样回到场景抽屉(取消按钮已走 cancel 分支)
|
||||
this.setData({ showSceneSheet: true })
|
||||
return
|
||||
}
|
||||
const pending = (this as any).pendingScene || { sceneType: 1, scene: '' }
|
||||
this.doGenerate(pending.sceneType, pending.scene)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user