style: auto format
This commit is contained in:
+3
-3
@@ -8,8 +8,8 @@ module.exports = async (ctx) => {
|
||||
const link = `${host}/tx/${id}/list.htm`;
|
||||
const response = await got(link);
|
||||
const $ = cheerio.load(response.data);
|
||||
const typeTitle = $("span.Column_Anchor").text();
|
||||
const title = $("li.col_title h2").text();
|
||||
const typeTitle = $('span.Column_Anchor').text();
|
||||
const title = $('li.col_title h2').text();
|
||||
|
||||
const list = $('ul.wp_article_list li')
|
||||
.toArray()
|
||||
@@ -36,7 +36,7 @@ module.exports = async (ctx) => {
|
||||
);
|
||||
|
||||
ctx.state.data = {
|
||||
title: `信息科学与工程学院团学工作 - ${typeTitle}${title === typeTitle ? "" : title}`,
|
||||
title: `信息科学与工程学院团学工作 - ${typeTitle}${title === typeTitle ? '' : title}`,
|
||||
description: '中国海洋大学信息科学与工程学院团学工作',
|
||||
link,
|
||||
item: out,
|
||||
|
||||
+2
-2
@@ -18,8 +18,8 @@ module.exports = {
|
||||
title: '信息科学与工程学部团学工作',
|
||||
docs: 'https://docs.rsshub.app/routes/university#zhong-guo-hai-yang-da-xue-xin-xi-ke-xue-yu-gong-cheng-xue-yuan-tuan-xue-gong-zuo',
|
||||
source: ['/tx/:id/list.htm'],
|
||||
target: '/ouc/it/tx/:id'
|
||||
}
|
||||
target: '/ouc/it/tx/:id',
|
||||
},
|
||||
],
|
||||
jwc: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user