mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 08:44:25 +08:00
support changing numeral system
This commit is contained in:
+12
-6
@@ -99,6 +99,16 @@ export const useUserStore = defineStore('user', () => {
|
||||
return userInfo.fiscalYearFormat;
|
||||
});
|
||||
|
||||
const currentUserCurrencyDisplayType = computed<number>(() => {
|
||||
const userInfo = currentUserBasicInfo.value || EMPTY_USER_BASIC_INFO;
|
||||
return userInfo.currencyDisplayType;
|
||||
});
|
||||
|
||||
const currentUserNumeralSystem = computed<number>(() => {
|
||||
const userInfo = currentUserBasicInfo.value || EMPTY_USER_BASIC_INFO;
|
||||
return userInfo.numeralSystem;
|
||||
});
|
||||
|
||||
const currentUserDecimalSeparator = computed<number>(() => {
|
||||
const userInfo = currentUserBasicInfo.value || EMPTY_USER_BASIC_INFO;
|
||||
return userInfo.decimalSeparator;
|
||||
@@ -114,11 +124,6 @@ export const useUserStore = defineStore('user', () => {
|
||||
return userInfo.digitGrouping;
|
||||
});
|
||||
|
||||
const currentUserCurrencyDisplayType = computed<number>(() => {
|
||||
const userInfo = currentUserBasicInfo.value || EMPTY_USER_BASIC_INFO;
|
||||
return userInfo.currencyDisplayType;
|
||||
});
|
||||
|
||||
const currentUserCoordinateDisplayType = computed<number>(() => {
|
||||
const userInfo = currentUserBasicInfo.value || EMPTY_USER_BASIC_INFO;
|
||||
return userInfo.coordinateDisplayType;
|
||||
@@ -422,10 +427,11 @@ export const useUserStore = defineStore('user', () => {
|
||||
currentUserLongTimeFormat,
|
||||
currentUserShortTimeFormat,
|
||||
currentUserFiscalYearFormat,
|
||||
currentUserCurrencyDisplayType,
|
||||
currentUserNumeralSystem,
|
||||
currentUserDecimalSeparator,
|
||||
currentUserDigitGroupingSymbol,
|
||||
currentUserDigitGrouping,
|
||||
currentUserCurrencyDisplayType,
|
||||
currentUserCoordinateDisplayType,
|
||||
currentUserExpenseAmountColor,
|
||||
currentUserIncomeAmountColor,
|
||||
|
||||
Reference in New Issue
Block a user