diff --git a/src/App.vue b/src/App.vue index a52353d..17d7203 100644 --- a/src/App.vue +++ b/src/App.vue @@ -20,10 +20,6 @@ methods: { test() { searchSysLanguagePack().then(({data}) => { - // console.log(this.$i18n) - // console.log(data.data) - console.log(this.$i18n.locale) - console.log(data.data) this.$i18n.mergeLocaleMessage('en', data.data.en) this.$i18n.mergeLocaleMessage('cn', data.data.cn) }) diff --git a/src/element-ui/index.js b/src/element-ui/index.js index 7540878..7ab1f10 100644 --- a/src/element-ui/index.js +++ b/src/element-ui/index.js @@ -153,3 +153,5 @@ Vue.prototype.$notify = Notification Vue.prototype.$message = Message Vue.prototype.$ELEMENT = { size: 'medium' } + + diff --git a/src/views/main.vue b/src/views/main.vue index 575e396..9cce5e7 100644 --- a/src/views/main.vue +++ b/src/views/main.vue @@ -70,9 +70,9 @@ methods: { // 重置窗口可视高度 resetDocumentClientHeight () { - this.documentClientHeight = document.documentElement['clientHeight'] + this.documentClientHeight = document.documentElement['clientHeight']-1 window.onresize = () => { - this.documentClientHeight = document.documentElement['clientHeight'] + this.documentClientHeight = document.documentElement['clientHeight']-1 } }, // 获取当前管理员信息 diff --git a/static/config/index.js b/static/config/index.js index 7380bd8..013cba1 100644 --- a/static/config/index.js +++ b/static/config/index.js @@ -11,4 +11,6 @@ window.SITE_CONFIG['domain'] = './'; // 域名 window.SITE_CONFIG['version'] = ''; // 版本号(年月日时分) window.SITE_CONFIG['cdnUrl'] = window.SITE_CONFIG.domain + window.SITE_CONFIG.version; + + })();