diff --git a/src/views/monitor/ipratelimit/index.vue b/src/views/monitor/ipratelimit/index.vue
index 8038169..862ee5f 100644
--- a/src/views/monitor/ipratelimit/index.vue
+++ b/src/views/monitor/ipratelimit/index.vue
@@ -17,7 +17,7 @@
- 日志
+ 日志
@@ -45,6 +45,7 @@
查看
编辑
删除
+ 日志
@@ -156,16 +157,6 @@
-
Hello World
-
-
-

-
-
-
ChitChat
-
You have a new message!
-
-
@@ -469,8 +460,8 @@ const handleDeleteRuleLine = (index: any) => {
ipRateLimitPolicyModel.value.rules?.splice(index, 1)
}
-const handleGoToLog = () => {
- router.push('/monitor/ipratelimitlog')
+const handleGoToLog = (ip?: string) => {
+ router.push({ path: '/monitor/ipratelimitlog', query: { ip } })
}
diff --git a/src/views/monitor/ipratelimit/ipratelimitlog/index.vue b/src/views/monitor/ipratelimit/ipratelimitlog/index.vue
index 1eef2bd..6154f13 100644
--- a/src/views/monitor/ipratelimit/ipratelimitlog/index.vue
+++ b/src/views/monitor/ipratelimit/ipratelimitlog/index.vue
@@ -27,6 +27,7 @@ import { getIpRateLimitLogPage } from '@/api/monitor/ipratelimit'
onMounted(() => {
getList()
})
+const route = useRoute()
const router = useRouter()
const cardLoading = ref(false)
const goBack = () => {
@@ -39,7 +40,8 @@ const loading = ref(true)
const total = ref(0)
const queryParams = ref({
pageNum: 1,
- pageSize: 10
+ pageSize: 10,
+ clientIp: route.query.ip
})
interface ipRateLimitLog {
id: string