This commit is contained in:
syuilo
2021-04-11 21:31:38 +09:00
parent a88e486468
commit d06517265f
4 changed files with 33 additions and 23 deletions

View File

@@ -148,7 +148,11 @@ export default defineComponent({
}, { immediate: true });
watch(() => props.initialPage, () => {
page.value = props.initialPage;
if (props.initialPage == null && !narrow.value) {
page.value = 'profile';
} else {
page.value = props.initialPage;
}
});
onMounted(() => {