refactor: format
This commit is contained in:
parent
5f83ef4e2e
commit
e21dec83d3
|
|
@ -10,6 +10,12 @@ pageClass: routes
|
|||
|
||||
<Route author="Chingyat" example="/pigtails" path="/pigtails/index"/>
|
||||
|
||||
## Bing 壁纸
|
||||
|
||||
### 每日壁纸
|
||||
|
||||
<Route author="FHYunCai" example="/bing" path="/bing"/>
|
||||
|
||||
## Konachan Anime Wallpapers
|
||||
|
||||
::: tip 提示
|
||||
|
|
@ -151,9 +157,3 @@ pageClass: routes
|
|||
### 主题
|
||||
|
||||
<Route author="xyqfer" example="/dapenti/subject/184" path="/dapenti/subject/:id" :paramsDesc="['主题 id']"/>
|
||||
|
||||
## Bing 壁纸
|
||||
|
||||
### 每日壁纸
|
||||
|
||||
<Route author="FHYunCai" example="/bing" path="/bing"/>
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ module.exports = async (ctx) => {
|
|||
if (cache) {
|
||||
return Promise.resolve(JSON.parse(cache));
|
||||
}
|
||||
if (topic_title == '') {
|
||||
if (topic_title === '') {
|
||||
topic_title = item.topics[0].title;
|
||||
topic_link = `https://sspai.com/topic/${id}`;
|
||||
topic_des = item.topics[0].intro;
|
||||
|
|
|
|||
Loading…
Reference in New Issue