随机背景图
This commit is contained in:
parent
dedd49116e
commit
deaa767902
@ -22,10 +22,10 @@ html, body, #container {
|
|||||||
min-height:100%;
|
min-height:100%;
|
||||||
scroll-behavior: smooth;
|
scroll-behavior: smooth;
|
||||||
-webkit-overflow-scrolling: touch;
|
-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-size: contain;
|
||||||
background-position: right;
|
background-position: right;
|
||||||
overflow-scrolling: touch;
|
// overflow-scrolling: touch;
|
||||||
&.show {
|
&.show {
|
||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -174,9 +174,9 @@ const vm = new Vue({
|
|||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
console.warn('加载文章列表失败')
|
console.warn('加载文章列表失败')
|
||||||
})
|
})
|
||||||
welcomeMessage().then(msg => {
|
welcomeMessage().then((function(msg) {
|
||||||
this.showMessage(msg, 6000)
|
this.showMessage(msg, 6000)
|
||||||
})
|
}).bind(this))
|
||||||
document.addEventListener('copy', () => {
|
document.addEventListener('copy', () => {
|
||||||
this.showMessage('你都复制了些什么呀,转载要记得加上出处哦')
|
this.showMessage('你都复制了些什么呀,转载要记得加上出处哦')
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user