Skip to content

Commit 92c4899

Browse files
committed
modified 优化接口文档
1 parent 540454f commit 92c4899

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/view/wiki/list.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -53,21 +53,21 @@
5353
<p slot="content" v-if="item.api_info">
5454
<span v-bind:key="api_index" v-for="(api_item, api_index) in item.api_info" @click="showApiDetail(api_item.hash)" style="cursor:pointer">
5555
<Alert type="warning" v-if="api_item.method === 0">
56-
<h3>/api/{{api_item.hash}}</h3>
56+
<h3>/api/{{api_item.hash_type === 1 ? api_item.api_class : api_item.hash}}</h3>
5757
<template slot="desc">
5858
<Tag color="warning">不限</Tag>
5959
{{api_item.info}}
6060
</template>
6161
</Alert>
6262
<Alert v-if="api_item.method === 2">
63-
<h3>/api/{{api_item.hash}}</h3>
63+
<h3>/api/{{api_item.hash_type === 1 ? api_item.api_class : api_item.hash}}</h3>
6464
<template slot="desc">
6565
<Tag color="primary">GET</Tag>
6666
{{api_item.info}}
6767
</template>
6868
</Alert>
6969
<Alert type="success" v-if="api_item.method === 1">
70-
<h3>/api/{{api_item.hash}}</h3>
70+
<h3>/api/{{api_item.hash_type === 1 ? api_item.api_class : api_item.hash}}</h3>
7171
<template slot="desc">
7272
<Tag color="success">POST</Tag>
7373
{{api_item.info}}

0 commit comments

Comments
 (0)