code refactor

This commit is contained in:
MaysWind
2025-01-25 14:55:40 +08:00
parent a27a2556aa
commit c619d2ecad
10 changed files with 21 additions and 21 deletions
@@ -133,7 +133,7 @@ function getCategoryTypeName(categoryType: CategoryType): string {
}
}
function save() {
function save(): void {
submitting.value = true;
const submitCategories = categorizedArrayToPlainArray(allPresetCategories.value);
+2 -2
View File
@@ -134,13 +134,13 @@ const exchangeRatesLastUpdateDate = computed<string>(() => {
return exchangeRatesLastUpdateTime ? formatUnixTimeToLongDate(exchangeRatesLastUpdateTime) : '';
});
function switchToDesktopVersion() {
function switchToDesktopVersion(): void {
showConfirm('Are you sure you want to switch to desktop version?', () => {
window.location.replace(getDesktopVersionPath());
});
}
function logout() {
function logout(): void {
showConfirm('Are you sure you want to log out?', () => {
logouting.value = true;
showLoading(() => logouting.value);