Skip to content

Commit 948c86e

Browse files
committed
update ui
1 parent ce2489d commit 948c86e

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

src/components/Main.vue

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@
6262
<div class="version-info" v-html="updateContent"></div>
6363
</a-modal>
6464

65-
<a-modal :width="900" :visible="systemModalVisible" :footer="null" @cancel="systemModalVisible = false">
65+
<!-- <a-modal :width="900" :visible="systemModalVisible" :footer="null" @cancel="systemModalVisible = false">
6666
<app-system />
67-
</a-modal>
67+
</a-modal> -->
6868

6969
<a-modal :width="900" :visible="logModalVisible" :footer="null" @cancel="logModalVisible = false">
7070
<h2>{{ log.type }}</h2>
@@ -73,6 +73,16 @@
7373
</pre>
7474
</a-modal>
7575

76+
<a-drawer
77+
title=""
78+
placement="bottom"
79+
height="100%"
80+
@close="systemModalVisible = false"
81+
:visible="systemModalVisible"
82+
>
83+
<app-system />
84+
</a-drawer>
85+
7686
</a-layout>
7787
</template>
7888

src/server/renderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export default class Renderer extends Model {
135135
hideInList: !!item.data.hideInList,
136136
isTop: !!item.data.isTop,
137137
stats,
138-
description: `${content.replace(/<[^>]*>/g, '').substring(0, 120)}...`,
138+
description: `${content.replace(/<[^>]*>/g, '').substring(0, 120)}${content[121] ? '...' : ''}`,
139139
}
140140

141141
result.toc = toc

0 commit comments

Comments
 (0)