add version in settings page, modify version style

This commit is contained in:
MaysWind
2020-11-01 00:15:55 +08:00
parent 5848292ed8
commit 0536efeb20
3 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -121,7 +121,7 @@
export default {
computed: {
version() {
return this.$version();
return 'v' + this.$version();
}
}
}
+1 -1
View File
@@ -110,7 +110,7 @@ export default {
},
computed: {
version() {
return this.$version();
return 'v' + this.$version();
},
isUserRegistrationEnabled() {
return this.$isUserRegistrationEnabled();
+4 -1
View File
@@ -19,7 +19,7 @@
:value="locale">{{ lang.displayName }}</option>
</select>
</f7-list-item>
<f7-list-item :title="$t('About')" link="/about"></f7-list-item>
<f7-list-item :title="$t('About')" link="/about" :after="version"></f7-list-item>
</f7-list>
</f7-page>
</template>
@@ -34,6 +34,9 @@ export default {
};
},
computed: {
version() {
return 'v' + this.$version();
},
userNickName() {
return this.$user.getUserNickName() || this.$user.getUserName() || this.$t('User');
},