U:调整日志

This commit is contained in:
jimmy committed 2025-07-31 09:22:54 +08:00
1 parent b3d48cb037
commit 5c7220a804
1 file changed
+5 -3
@@ -297,6 +297,7 @@ const currentEditRule = ref(null)
const firewallEnabled = ref(true)
const checkedRowKeys = ref<string[]>([])
// 搜索与过滤
const searchQuery = ref('')
const filters = ref({
direction: null as string | null,
@@ -358,14 +359,14 @@ const stats = ref({
inboundRules: 0,
})
// 请求状态数据
// 请求统计数据
httpClient.get('/firewall/status').then((res: ApiResponse<FirewallStatus>) => {
if (!res.success) {
message.error(StringUtils.isBlank(res.message) ? '错误信息为空!' : res.message)
return
}
if (res.data === null || res.data === undefined ){
message.error("获取数据为空!")
if (res.data === null || res.data === undefined) {
message.error('获取数据为空!')
return
}
stats.value.inboundRules = res.data!.inboundRules
@@ -457,6 +458,7 @@ const mockRules = ref([
})),
])
// 计算属性
const filteredRules = computed(() => {
let rules = mockRules.value