support user custom exchange rates data

This commit is contained in:
MaysWind
2025-05-26 00:47:19 +08:00
parent c4d20c539f
commit 817291c9a7
41 changed files with 1257 additions and 73 deletions
+2 -2
View File
@@ -28,7 +28,7 @@ import TransactionTemplateListPage from '@/views/desktop/templates/ListPage.vue'
import UserSettingsPage from '@/views/desktop/user/UserSettingsPage.vue';
import AppSettingsPage from '@/views/desktop/app/AppSettingsPage.vue';
import ExchangeRatesPage from '@/views/desktop/ExchangeRatesPage.vue';
import ExchangeRatesListPage from '@/views/desktop/exchangerates/ListPage.vue';
import AboutPage from '@/views/desktop/AboutPage.vue';
function checkLogin(): NavigationGuardReturn {
@@ -168,7 +168,7 @@ const router = createRouter({
},
{
path: '/exchange_rates',
component: ExchangeRatesPage,
component: ExchangeRatesListPage,
beforeEnter: checkLogin
},
{
+8 -2
View File
@@ -25,7 +25,8 @@ import TransactionTagFilterSettingsPage from '@/views/mobile/settings/Transactio
import SettingsPage from '@/views/mobile/SettingsPage.vue';
import ApplicationLockPage from '@/views/mobile/ApplicationLockPage.vue';
import ExchangeRatesPage from '@/views/mobile/ExchangeRatesPage.vue';
import ExchangeRatesListPage from '@/views/mobile/exchangerates/ListPage.vue';
import ExchangeRatesUpdatePage from '@/views/mobile/exchangerates/UpdatePage.vue';
import AboutPage from '@/views/mobile/AboutPage.vue';
import UserProfilePage from '@/views/mobile/users/UserProfilePage.vue';
@@ -236,7 +237,12 @@ const routes: Router.RouteParameters[] = [
},
{
path: '/exchange_rates',
async: asyncResolve(ExchangeRatesPage),
async: asyncResolve(ExchangeRatesListPage),
beforeEnter: [checkLogin]
},
{
path: '/exchange_rates/update',
async: asyncResolve(ExchangeRatesUpdatePage),
beforeEnter: [checkLogin]
},
{