mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-20 01:34:24 +08:00
code refactor
This commit is contained in:
@@ -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
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user