mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-08 14:07:54 +08:00
docs: fix compatibility
This commit is contained in:
@@ -9,10 +9,10 @@
|
|||||||
<p class="path">
|
<p class="path">
|
||||||
路由: <code>{{ path }}</code>
|
路由: <code>{{ path }}</code>
|
||||||
</p>
|
</p>
|
||||||
<div v-if="path.match(/(?<=:).*?(?=\/|$)/g)">
|
<div v-if="path.match(/:.*?(\/|$)/g)">
|
||||||
<p>
|
<p>
|
||||||
参数:
|
参数:
|
||||||
<ul><li class="params" v-for="(item, index) in path.match(/(?<=:).*?(?=\/|$)/g)">{{item.replace('?','')}}, {{(item.includes('?'))?'可选':'必选'}} - <span v-html="renderMarkdown(paramsDesc[index])"></span></li></ul> </p>
|
<ul><li class="params" v-for="(item, index) in path.match(/:.*?(\/|$)/g)">{{item.replace(':','').replace('/','').replace('?','')}}, {{(item.includes('?'))?'可选':'必选'}} - <span v-html="renderMarkdown(paramsDesc[index])"></span></li></ul> </p>
|
||||||
</div>
|
</div>
|
||||||
<div v-else><p>参数: 无</p></div>
|
<div v-else><p>参数: 无</p></div>
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
@@ -46,7 +46,7 @@ export default {
|
|||||||
default: '无'
|
default: '无'
|
||||||
},
|
},
|
||||||
crawlerBadge: {
|
crawlerBadge: {
|
||||||
type: Boolean,
|
type: String,
|
||||||
default: null
|
default: null
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user