Browse Source

侧边滚动条

master
[li_she] 5 years ago
parent
commit
a8b9ac1178
  1. 4
      src/App.vue
  2. 2
      src/element-ui/index.js
  3. 4
      src/views/main.vue
  4. 2
      static/config/index.js

4
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)
})

2
src/element-ui/index.js

@ -153,3 +153,5 @@ Vue.prototype.$notify = Notification
Vue.prototype.$message = Message
Vue.prototype.$ELEMENT = { size: 'medium' }

4
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
}
},
//

2
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;
})();
Loading…
Cancel
Save