mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 16:54:25 +08:00
code refactor
This commit is contained in:
@@ -133,7 +133,7 @@ function getCategoryTypeName(categoryType: CategoryType): string {
|
||||
}
|
||||
}
|
||||
|
||||
function save() {
|
||||
function save(): void {
|
||||
submitting.value = true;
|
||||
|
||||
const submitCategories = categorizedArrayToPlainArray(allPresetCategories.value);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user