chore(admin): remove manual refresh buttons across pages
This commit is contained in:
@@ -276,10 +276,6 @@ async function refreshAll(options = {}) {
|
||||
|
||||
let refreshTimer = null
|
||||
|
||||
function manualRefresh() {
|
||||
return refreshAll({ showLoading: true })
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
refreshAll({ showLoading: false })
|
||||
refreshTimer = setInterval(() => refreshAll({ showLoading: false }), 5000)
|
||||
@@ -306,9 +302,6 @@ onUnmounted(() => {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="hero-actions">
|
||||
<el-button type="primary" :loading="loading" @click="manualRefresh">刷新数据</el-button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<MetricGrid :items="overviewCards" :loading="loading" :min-width="165" />
|
||||
|
||||
Reference in New Issue
Block a user