Skip to content

Commit

Permalink
fix:修复工作台缓存未清除导致的徽标显示错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Cnotech committed Nov 22, 2022
1 parent 21a0c38 commit 80e4244
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions packages/renderer/src/components/Game.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@
<QuestionCircleOutlined v-else/>
</a-popover>
<a-badge v-if="realTimeSniffing.display"
:count="realTimeSniffing.data.filter(node=>node.method=='downloaded').length"
:count="realTimeSniffing.data.filter(node=>node.method==='downloaded').length"
@click="realTimeSniffing.drawerDisplay=true">
<a-tooltip title="正在进行智能嗅探">
<a-tooltip title="查看智能嗅探工作台">
<radar-chart-outlined class="progress-status-icon" style="color: #42b983"/>
</a-tooltip>
</a-badge>
Expand Down Expand Up @@ -150,7 +150,7 @@
id="webview-container"
style="width:100%; height:80%;border-width: 0"
/>
<a-drawer v-model:visible="realTimeSniffing.drawerDisplay" placement="bottom" title="实时嗅探列表">
<a-drawer v-model:visible="realTimeSniffing.drawerDisplay" placement="bottom" title="智能嗅探工作台">
<table style="width: 100%">
<template v-for="item of realTimeSniffing.data">
<tr>
Expand All @@ -161,10 +161,10 @@
<a-tag :color="RealTimeSniffingTag[item.method].color">
{{ RealTimeSniffingTag[item.method].text }}
<template #icon>
<check-circle-outlined v-if="item.method=='downloaded'"/>
<close-circle-outlined v-if="item.method=='error'"/>
<minus-circle-outlined v-if="item.method=='ignored'"/>
<clock-circle-outlined v-if="item.method=='cached'"/>
<check-circle-outlined v-if="item.method==='downloaded'"/>
<close-circle-outlined v-if="item.method==='error'"/>
<minus-circle-outlined v-if="item.method==='ignored'"/>
<clock-circle-outlined v-if="item.method==='cached'"/>
</template>
</a-tag>
</td>
Expand Down Expand Up @@ -690,6 +690,9 @@ onMounted(async () => {
url: args.payload.url,
method: args.payload.method
})
} else {
realTimeSniffing.value.drawerDisplay = false
realTimeSniffing.value.data = []
}
})
Expand Down

0 comments on commit 80e4244

Please sign in to comment.