Merge branch 'master' of gitlab.com:sookie/hexo_blog
This commit is contained in:
commit
a8c44a4709
@ -27,7 +27,7 @@ function loadMoreItems(step) {
|
||||
scrollLock = true //加载过程中锁定滚动加载
|
||||
loadTip.style.display = 'block'
|
||||
// 滚动到底部时调用
|
||||
axios.get(`${themeConfig.root}api/photos`, {params: {start:totalIndex, limit:step}}).then(res => {
|
||||
axios.get(`${themeConfig.root}api/common/photos`, {params: {start:totalIndex, limit:step}}).then(res => {
|
||||
var itemContainer = document.createElement('div')
|
||||
for(let index = 0 ; index<res.data.data.length && totalIndex<res.data.total ; index++,totalIndex++ ) {
|
||||
let imgHeight = null, imgFile = res.data.data[index],
|
||||
|
||||
@ -210,7 +210,7 @@ const waifuTools = {
|
||||
},
|
||||
"tools.chart"() {
|
||||
// 一言
|
||||
axios.get(`${window.themeConfig.root}api/hitokoto?length=40&format=json`).then(res => {
|
||||
axios.get(`${window.themeConfig.root}api/common/hitokoto?length=40&format=json`).then(res => {
|
||||
this.showMessage(res.data.hitokoto + (res.data.from?` ——${res.data.from}`:''))
|
||||
})
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user