Commit fd6866ae authored by Chunchi Che's avatar Chunchi Che

fix small

parent b3f03bdf
Pipeline #22618 passed with stages
in 13 minutes and 15 seconds
......@@ -69,6 +69,15 @@ const ReplayModal: React.FC = () => {
// FIXME: 这样写肯定不对
window.myExtraDeckCodes = [];
// 初始化sqlite
await sqliteMiddleWare({
cmd: sqliteCmd.INIT,
initInfo: { dbUrl: NeosConfig.cardsDbUrl },
});
// 初始化文案
await initStrings();
// 连接回放websocket服务
socketMiddleWare({
cmd: socketCmd.CONNECT,
......@@ -78,15 +87,6 @@ const ReplayModal: React.FC = () => {
data: replay,
},
});
// 初始化sqlite
await sqliteMiddleWare({
cmd: sqliteCmd.INIT,
initInfo: { dbUrl: NeosConfig.cardsDbUrl },
});
// 初始化文案
await initStrings();
}
}}
onCancel={() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment