Skip to content

Commit

Permalink
在解封/封禁节点后重新拉取数据
Browse files Browse the repository at this point in the history
  • Loading branch information
unify-z committed Aug 30, 2024
1 parent 40088c3 commit ee4e0f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/dashboard/admin/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ async function banCluster(){
withCredentials: true,
});
ElMessage.success('节点封禁成功');
fetchclusterlist()
}catch(error){
ElMessage.error('节点封禁失败: ' + error);
console.log(error)
Expand All @@ -88,6 +89,7 @@ async function unbanCluster(id){
withCredentials: true,
});
ElMessage.success('节点解封成功');
fetchclusterlist()
}catch(error){
ElMessage.error('节点封禁失败: ' + error);
console.log(error)
Expand Down

0 comments on commit ee4e0f1

Please sign in to comment.