From 05aa0fa11a088b99b8414618dde5e02ae692277f Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 8 Apr 2023 14:31:09 +0900 Subject: [PATCH] :art: --- .../frontend/src/pages/settings/index.vue | 22 +++++++++---------- .../frontend/src/pages/settings/migration.vue | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/frontend/src/pages/settings/index.vue b/packages/frontend/src/pages/settings/index.vue index 4e22d7b60..9824fa8c1 100644 --- a/packages/frontend/src/pages/settings/index.vue +++ b/packages/frontend/src/pages/settings/index.vue @@ -130,16 +130,6 @@ const menuDef = computed(() => [{ }, { title: i18n.ts.otherSettings, items: [{ - icon: 'ti ti-plane', - text: i18n.ts.migration, - to: '/settings/migration', - active: currentPage?.route.name === 'migration', - }, { - icon: 'ti ti-package', - text: i18n.ts.importAndExport, - to: '/settings/import-export', - active: currentPage?.route.name === 'import-export', - }, { icon: 'ti ti-badges', text: i18n.ts.roles, to: '/settings/roles', @@ -169,6 +159,16 @@ const menuDef = computed(() => [{ text: 'Webhook', to: '/settings/webhook', active: currentPage?.route.name === 'webhook', + }, { + icon: 'ti ti-package', + text: i18n.ts.importAndExport, + to: '/settings/import-export', + active: currentPage?.route.name === 'import-export', + }, { + icon: 'ti ti-plane', + text: i18n.ts.migration, + to: '/settings/migration', + active: currentPage?.route.name === 'migration', }, { icon: 'ti ti-dots', text: i18n.ts.other, @@ -236,7 +236,7 @@ onUnmounted(() => { }); watch(router.currentRef, (to) => { - if (to.route.name === "settings" && to.child?.route.name == null && !narrow) { + if (to.route.name === 'settings' && to.child?.route.name == null && !narrow) { router.replace('/settings/profile'); } }); diff --git a/packages/frontend/src/pages/settings/migration.vue b/packages/frontend/src/pages/settings/migration.vue index 0295aeae1..1fd3d64fd 100644 --- a/packages/frontend/src/pages/settings/migration.vue +++ b/packages/frontend/src/pages/settings/migration.vue @@ -1,6 +1,6 @@