Skip to content

Commit

Permalink
feat: 调试面板新增页面缓存可视化
Browse files Browse the repository at this point in the history
  • Loading branch information
zhufengfj committed Sep 23, 2022
1 parent 417c020 commit b2cc153
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/components/dev/HbAdminDevTool.vue
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ watch(showPanel, () => {
<th>页面ID</th>
<th>标题</th>
<th>路径</th>
<th>是否开启缓存</th>
<th>操作</th>
</tr>
</thead>
Expand All @@ -174,6 +175,20 @@ watch(showPanel, () => {
<td>{{ e.pageId }}</td>
<td>{{ framework.getNav(e.pageId).title }}</td>
<td>{{ framework.getNav(e.pageId).menuItem.routerPath }}</td>
<td>
<n-tag
v-if="e.isKeepalive"
type="success"
>
{{ !e.isKeepalive ? '否' : '是' }}
</n-tag>
<n-tag
v-else
type="warning"
>
{{ !e.isKeepalive ? '否' : '是' }}
</n-tag>
</td>
<td>
<n-button @click="removeComponentCache(e.pageId)">删除缓存</n-button>
</td>
Expand Down

1 comment on commit b2cc153

@vercel
Copy link

@vercel vercel bot commented on b2cc153 Sep 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.