From 8665aa0ad4132abdc9b25ef51d6d7934613f9f7e 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:14:16 +0800 Subject: [PATCH] =?UTF-8?q?showMessage=E4=B8=8A=E4=B8=8B=E6=96=87=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/yilia/source-src/js/slider.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/themes/yilia/source-src/js/slider.js b/themes/yilia/source-src/js/slider.js index 41b99d4..45c4d73 100644 --- a/themes/yilia/source-src/js/slider.js +++ b/themes/yilia/source-src/js/slider.js @@ -174,9 +174,10 @@ const vm = new Vue({ }).catch(err => { console.warn('加载文章列表失败') }) - welcomeMessage().then((function(msg) { - this.showMessage(msg, 6000) - }).bind(this)) + let _this = this + welcomeMessage().then(msg => { + _this.showMessage(msg, 6000) + }) document.addEventListener('copy', () => { this.showMessage('你都复制了些什么呀,转载要记得加上出处哦') })