code refactor

This commit is contained in:
MaysWind
2021-01-03 14:55:48 +08:00
parent 42b302c58b
commit 39d437a4e7
4 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -74,8 +74,8 @@ Framework7.use(Framework7Vue);
const i18n = new VueI18n(getI18nOptions()); const i18n = new VueI18n(getI18nOptions());
Vue.prototype.$version = version.getVersion; Vue.prototype.$version = version.getVersion();
Vue.prototype.$buildTime = version.getBuildTime; Vue.prototype.$buildTime = version.getBuildTime();
Vue.prototype.$licenses = licenses; Vue.prototype.$licenses = licenses;
Vue.prototype.$constants = { Vue.prototype.$constants = {
+2 -2
View File
@@ -66,10 +66,10 @@
export default { export default {
computed: { computed: {
version() { version() {
return 'v' + this.$version(); return 'v' + this.$version;
}, },
buildTime() { buildTime() {
return this.$buildTime(); return this.$buildTime;
}, },
licenses() { licenses() {
return this.$licenses; return this.$licenses;
+1 -1
View File
@@ -115,7 +115,7 @@ export default {
}, },
computed: { computed: {
version() { version() {
return 'v' + this.$version(); return 'v' + this.$version;
}, },
allLanguages() { allLanguages() {
return this.$locale.getAllLanguages(); return this.$locale.getAllLanguages();
+1 -1
View File
@@ -94,7 +94,7 @@ export default {
}, },
computed: { computed: {
version() { version() {
return 'v' + this.$version(); return 'v' + this.$version;
}, },
allLanguages() { allLanguages() {
return this.$locale.getAllLanguages(); return this.$locale.getAllLanguages();