Skip to content

Commit 4c239e5

Browse files
author
zhaoxiang
committed
modified 修复前端BUG
1 parent 5728d48 commit 4c239e5

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/view/wiki/list.vue

+6-3
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@
4848
<div class="wiki-layout-con">
4949
<Spin size="large" fix v-if="show_loading"></Spin>
5050
<Collapse>
51-
<Panel v-bind:key="index" v-for="(item, index) in groupInfo" :name="index.toString()">
52-
{{item.name}}【{{item.create_time}}】 <span style="float: right;margin-right: 20px;">接口数量{{item.api_info.length}} | 项目热度{{item.hot}}</span>
53-
<p slot="content">
51+
<Panel v-bind:key="index" v-for="(item, index) in groupInfo" :name="index.toString()">
52+
{{item.name}}【{{item.create_time}}】 <span style="float: right;margin-right: 20px;">接口数量{{item.api_info ? item.api_info.length : 0}} | 项目热度{{item.hot}}</span>
53+
<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">
5656
<h3>/api/{{api_item.hash}}</h3>
@@ -75,6 +75,9 @@
7575
</Alert>
7676
</span>
7777
</p>
78+
<p slot="content" v-else style="text-align: center">
79+
<span>暂无接口</span>
80+
</p>
7881
</Panel>
7982
</Collapse>
8083
<ABackTop :height="100" :bottom="80" :right="60" container=".wiki-layout-con"></ABackTop>

0 commit comments

Comments
 (0)