feat: 自定义主角称呼(profile.name + {name} 占位符 + 自报句式预填 + 报告/分享卡展示)

This commit is contained in:
Jayway Liu
2026-10-03 22:13:31 +08:00
parent 316cdfaffe
commit 512651b973
9 changed files with 94 additions and 22 deletions
+4 -3
View File
@@ -29,11 +29,12 @@ export default function App() {
}, []);
useEffect(() => {
void engine.hasConsent().then((ok) => {
void (async () => {
const ok = await engine.hasConsent();
// 同意门之后才恢复剧情进度(刷新/热更新前的断点)
if (ok) engine.restore(progress.load());
if (ok) await engine.restore(progress.load());
setConsent(ok ? 'granted' : 'needed');
});
})();
}, [engine, progress]);
if (consent !== 'granted') {