feat: 自定义主角称呼(profile.name + {name} 占位符 + 自报句式预填 + 报告/分享卡展示)
This commit is contained in:
+4
-3
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user