From 67430e3c19be4eb8a6ebd30c09782bda70709dc9 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: Tue, 18 Jun 2019 21:19:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=8D=A2API=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/yilia/source-src/js/photo-wall.js | 2 +- themes/yilia/source-src/js/slider.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/yilia/source-src/js/photo-wall.js b/themes/yilia/source-src/js/photo-wall.js index 770e8e9..5ff497b 100644 --- a/themes/yilia/source-src/js/photo-wall.js +++ b/themes/yilia/source-src/js/photo-wall.js @@ -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 { + 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}`:'')) }) }