mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-29 05:26:43 -06:00
clean up
This commit is contained in:
parent
b3818d9c48
commit
fed59b1b71
1 changed files with 2 additions and 2 deletions
|
@ -251,7 +251,7 @@ watch(() => props.initialPage, () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
watch(narrow, () => {
|
watch(narrow, () => {
|
||||||
if (!narrow.value && props.initialPage == null) {
|
if (props.initialPage == null && !narrow.value) {
|
||||||
nav.push('/settings/profile');
|
nav.push('/settings/profile');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -260,7 +260,7 @@ onMounted(() => {
|
||||||
ro.observe(el.value);
|
ro.observe(el.value);
|
||||||
|
|
||||||
narrow.value = el.value.offsetWidth < NARROW_THRESHOLD;
|
narrow.value = el.value.offsetWidth < NARROW_THRESHOLD;
|
||||||
if (!narrow.value && props.initialPage == null) {
|
if (props.initialPage == null && !narrow.value) {
|
||||||
nav.push('/settings/profile');
|
nav.push('/settings/profile');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue