From a8b9ac11789e3ef6f684b85a837b823bb21bf7d3 Mon Sep 17 00:00:00 2001 From: "[li_she]" <[li.she@xujiesoft.com]> Date: Tue, 27 Jul 2021 10:33:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BE=A7=E8=BE=B9=E6=BB=9A=E5=8A=A8=E6=9D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 4 ---- src/element-ui/index.js | 2 ++ src/views/main.vue | 4 ++-- static/config/index.js | 2 ++ 4 files changed, 6 insertions(+), 6 deletions(-) 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; + + })();