code refactor

This commit is contained in:
MaysWind
2023-08-05 22:41:47 +08:00
parent a9a6d39127
commit 698d94feed
+3 -2
View File
@@ -246,8 +246,7 @@ export default {
return assetConstants.ezBookkeepingLogoPath; return assetConstants.ezBookkeepingLogoPath;
}, },
mdAndDown() { mdAndDown() {
const { mdAndDown } = useDisplay(); return this.display.mdAndDown.value;
return mdAndDown.value;
}, },
currentNickName() { currentNickName() {
return this.userStore.currentUserNickname || this.$t('User'); return this.userStore.currentUserNickname || this.$t('User');
@@ -276,9 +275,11 @@ export default {
} }
}, },
setup() { setup() {
const display = useDisplay();
const theme = useTheme(); const theme = useTheme();
return { return {
display: display,
globalTheme: theme globalTheme: theme
}; };
}, },