随机背景图

This commit is contained in:
结发受长生 2019-09-07 23:06:38 +08:00
parent dedd49116e
commit deaa767902
2 changed files with 4 additions and 4 deletions

View File

@ -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;
}

View File

@ -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('你都复制了些什么呀,转载要记得加上出处哦')
})