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;
},
mdAndDown() {
const { mdAndDown } = useDisplay();
return mdAndDown.value;
return this.display.mdAndDown.value;
},
currentNickName() {
return this.userStore.currentUserNickname || this.$t('User');
@@ -276,9 +275,11 @@ export default {
}
},
setup() {
const display = useDisplay();
const theme = useTheme();
return {
display: display,
globalTheme: theme
};
},