醉酒写代码
This commit is contained in:
parent
8665aa0ad4
commit
89258be2db
Binary file not shown.
|
Before Width: | Height: | Size: 36 KiB |
@ -174,9 +174,8 @@ const vm = new Vue({
|
|||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
console.warn('加载文章列表失败')
|
console.warn('加载文章列表失败')
|
||||||
})
|
})
|
||||||
let _this = this
|
|
||||||
welcomeMessage().then(msg => {
|
welcomeMessage().then(msg => {
|
||||||
_this.showMessage(msg, 6000)
|
this.showMessage(msg, 6000)
|
||||||
})
|
})
|
||||||
document.addEventListener('copy', () => {
|
document.addEventListener('copy', () => {
|
||||||
this.showMessage('你都复制了些什么呀,转载要记得加上出处哦')
|
this.showMessage('你都复制了些什么呀,转载要记得加上出处哦')
|
||||||
@ -246,7 +245,6 @@ async function welcomeMessage() {
|
|||||||
if(!text) {
|
if(!text) {
|
||||||
text = textTimes[textTimes.length-1].text
|
text = textTimes[textTimes.length-1].text
|
||||||
}
|
}
|
||||||
this.showMessage(res.data.hitokoto + (res.data.from?` ——${res.data.from}`:''))
|
|
||||||
return text
|
return text
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user