From deaa767902311fd96c01bdd1a5b8216c64fd1518 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BB=93=E5=8F=91=E5=8F=97=E9=95=BF=E7=94=9F?= Date: Sat, 7 Sep 2019 23:06:38 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9A=8F=E6=9C=BA=E8=83=8C=E6=99=AF=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/yilia/source-src/css/grid.scss | 4 ++-- themes/yilia/source-src/js/slider.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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('你都复制了些什么呀,转载要记得加上出处哦') })