tweak 105f4179
This commit is contained in:
parent
105f41796b
commit
d2a1806300
|
@ -13,6 +13,7 @@ import { miLocalStorage } from '@/local-storage';
|
|||
import { claimAchievement, claimedAchievements } from '@/scripts/achievements';
|
||||
import { mainRouter } from '@/router';
|
||||
import { initializeSw } from '@/scripts/initialize-sw';
|
||||
import { userName } from '@/filters/user';
|
||||
|
||||
export async function mainBoot() {
|
||||
const { isClientUpdated } = await common(() => createApp(
|
||||
|
@ -176,7 +177,7 @@ export async function mainBoot() {
|
|||
// 二時間以上前なら
|
||||
if (Date.now() - lastUsedDate > 1000 * 60 * 60 * 2) {
|
||||
welcomeToast(i18n.t('welcomeBackWithName', {
|
||||
name: $i.name || $i.username,
|
||||
name: userName($i),
|
||||
}));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -174,6 +174,11 @@ const menuDef = computed(() => [{
|
|||
text: i18n.ts.other,
|
||||
to: '/settings/other',
|
||||
active: currentPage?.route.name === 'other',
|
||||
}, {
|
||||
icon: 'ti ti-bulb-filled',
|
||||
text: 'CherryPick',
|
||||
to: '/settings/cherrypick',
|
||||
active: currentPage?.route.name === 'cherrypick',
|
||||
}],
|
||||
}, {
|
||||
items: [{
|
||||
|
|
|
@ -181,6 +181,10 @@ export const routes = [{
|
|||
path: '/other',
|
||||
name: 'other',
|
||||
component: page(() => import('./pages/settings/other.vue')),
|
||||
}, {
|
||||
path: '/cherrypick',
|
||||
name: 'cherrypick',
|
||||
component: page(() => import('./pages/settings/cherrypick.vue')),
|
||||
}, {
|
||||
path: '/',
|
||||
component: page(() => import('./pages/_empty_.vue')),
|
||||
|
|
Loading…
Reference in a new issue