Skip to content

Commit

Permalink
キャラクター情報の読み込みをエンジンが起動するまで待つ
Browse files Browse the repository at this point in the history
  • Loading branch information
shirowanisan committed Nov 28, 2021
1 parent 0d19e67 commit 638e36d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/components/AudioCell.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
:ratio="1"
:src="
'data:image/png;base64,' +
getDefaultStyle(characterInfo.metas.speakerUuid).iconBase64
getDefaultStyle(characterInfo.metas.speakerUuid)
.iconBase64
"
/>
</q-avatar>
Expand Down Expand Up @@ -102,7 +103,7 @@
:ratio="1"
:src="
'data:image/png;base64,' +
characterInfo.metas.styles[styleIndex].iconPath
characterInfo.metas.styles[styleIndex].iconBase64
"
/>
</q-avatar>
Expand Down
6 changes: 4 additions & 2 deletions src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,10 @@ export default defineComponent({
// プロジェクトを初期化
onMounted(async () => {
await store.dispatch("LOAD_CHARACTER").then(async () => {
await store.dispatch("LOAD_DEFAULT_STYLE_IDS");
await store.dispatch("START_WAITING_ENGINE").then(async () => {
await store.dispatch("LOAD_CHARACTER").then(async () => {
await store.dispatch("LOAD_DEFAULT_STYLE_IDS");
});
});
let isUnsetDefaultStyleIds = false;
if (characterInfos.value == undefined) throw new Error();
Expand Down

0 comments on commit 638e36d

Please sign in to comment.