diff --git a/themes/yilia/source-src/css/grid.scss b/themes/yilia/source-src/css/grid.scss index 960b8ee..aa95984 100644 --- a/themes/yilia/source-src/css/grid.scss +++ b/themes/yilia/source-src/css/grid.scss @@ -22,10 +22,10 @@ html, body, #container { min-height:100%; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; - background: $colorBodyBg url(./img/ctn_bg.png) no-repeat; + background: $colorBodyBg url(/api/common/randomBg) no-repeat; background-size: contain; background-position: right; - overflow-scrolling: touch; + // overflow-scrolling: touch; &.show { overflow-y: hidden; } diff --git a/themes/yilia/source-src/js/slider.js b/themes/yilia/source-src/js/slider.js index 7e3f2f7..41b99d4 100644 --- a/themes/yilia/source-src/js/slider.js +++ b/themes/yilia/source-src/js/slider.js @@ -174,9 +174,9 @@ const vm = new Vue({ }).catch(err => { console.warn('加载文章列表失败') }) - welcomeMessage().then(msg => { + welcomeMessage().then((function(msg) { this.showMessage(msg, 6000) - }) + }).bind(this)) document.addEventListener('copy', () => { this.showMessage('你都复制了些什么呀,转载要记得加上出处哦') })