mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 17:24:26 +08:00
remove unused code
This commit is contained in:
+7
-12
@@ -25,39 +25,34 @@ export const useUserStore = defineStore('user', {
|
|||||||
return userInfo.defaultAccountId || '';
|
return userInfo.defaultAccountId || '';
|
||||||
},
|
},
|
||||||
currentUserLanguage(state) {
|
currentUserLanguage(state) {
|
||||||
const settingsStore = useSettingsStore();
|
|
||||||
const userInfo = state.currentUserInfo || {};
|
const userInfo = state.currentUserInfo || {};
|
||||||
return userInfo.language || settingsStore.language;
|
return userInfo.language;
|
||||||
},
|
},
|
||||||
currentUserDefaultCurrency(state) {
|
currentUserDefaultCurrency(state) {
|
||||||
const settingsStore = useSettingsStore();
|
const settingsStore = useSettingsStore();
|
||||||
const userInfo = state.currentUserInfo || {};
|
const userInfo = state.currentUserInfo || {};
|
||||||
return userInfo.defaultCurrency || settingsStore.currency;
|
return userInfo.defaultCurrency || settingsStore.localeDefaultSettings.currency;
|
||||||
},
|
},
|
||||||
currentUserFirstDayOfWeek(state) {
|
currentUserFirstDayOfWeek(state) {
|
||||||
const settingsStore = useSettingsStore();
|
const settingsStore = useSettingsStore();
|
||||||
const userInfo = state.currentUserInfo || {};
|
const userInfo = state.currentUserInfo || {};
|
||||||
return isNumber(userInfo.firstDayOfWeek) ? userInfo.firstDayOfWeek : settingsStore.firstDayOfWeek;
|
return isNumber(userInfo.firstDayOfWeek) ? userInfo.firstDayOfWeek : settingsStore.localeDefaultSettings.firstDayOfWeek;
|
||||||
},
|
},
|
||||||
currentUserLongDateFormat(state) {
|
currentUserLongDateFormat(state) {
|
||||||
const settingsStore = useSettingsStore();
|
|
||||||
const userInfo = state.currentUserInfo || {};
|
const userInfo = state.currentUserInfo || {};
|
||||||
return isNumber(userInfo.longDateFormat) ? userInfo.longDateFormat : settingsStore.longDateFormat;
|
return userInfo.longDateFormat;
|
||||||
},
|
},
|
||||||
currentUserShortDateFormat(state) {
|
currentUserShortDateFormat(state) {
|
||||||
const settingsStore = useSettingsStore();
|
|
||||||
const userInfo = state.currentUserInfo || {};
|
const userInfo = state.currentUserInfo || {};
|
||||||
return isNumber(userInfo.shortDateFormat) ? userInfo.shortDateFormat : settingsStore.shortDateFormat;
|
return userInfo.shortDateFormat;
|
||||||
},
|
},
|
||||||
currentUserLongTimeFormat(state) {
|
currentUserLongTimeFormat(state) {
|
||||||
const settingsStore = useSettingsStore();
|
|
||||||
const userInfo = state.currentUserInfo || {};
|
const userInfo = state.currentUserInfo || {};
|
||||||
return isNumber(userInfo.longTimeFormat) ? userInfo.longTimeFormat : settingsStore.longTimeFormat;
|
return userInfo.longTimeFormat;
|
||||||
},
|
},
|
||||||
currentUserShortTimeFormat(state) {
|
currentUserShortTimeFormat(state) {
|
||||||
const settingsStore = useSettingsStore();
|
|
||||||
const userInfo = state.currentUserInfo || {};
|
const userInfo = state.currentUserInfo || {};
|
||||||
return isNumber(userInfo.shortTimeFormat) ? userInfo.shortTimeFormat : settingsStore.shortTimeFormat;
|
return userInfo.shortTimeFormat;
|
||||||
},
|
},
|
||||||
currentUserDecimalSeparator(state) {
|
currentUserDecimalSeparator(state) {
|
||||||
const userInfo = state.currentUserInfo || {};
|
const userInfo = state.currentUserInfo || {};
|
||||||
|
|||||||
Reference in New Issue
Block a user