This commit is contained in:
syuilo
2021-10-09 12:33:08 +09:00
parent b3779875d0
commit 27c056cbbf
38 changed files with 753 additions and 625 deletions

View File

@@ -39,7 +39,7 @@
</div>
</div>
<div class="main">
<component :is="component" :key="page" @info="onInfo" v-bind="pageProps"/>
<component :is="component" :key="page" v-bind="pageProps"/>
</div>
</div>
</template>
@@ -74,16 +74,13 @@ export default defineComponent({
title: i18n.locale.settings,
icon: 'fas fa-cog',
bg: 'var(--bg)',
hide: true,
};
const INFO = ref(indexInfo);
const page = ref(props.initialPage);
const narrow = ref(false);
const view = ref(null);
const el = ref(null);
const onInfo = (viewInfo) => {
INFO.value = viewInfo;
};
const pageProps = ref({});
const component = computed(() => {
if (page.value == null) return null;
@@ -146,7 +143,7 @@ export default defineComponent({
}
nextTick(() => {
scroll(el.value, 0);
scroll(el.value, { top: 0 });
});
}, { immediate: true });
@@ -176,7 +173,6 @@ export default defineComponent({
narrow,
view,
el,
onInfo,
pageProps,
component,
emailNotConfigured,