From 7e4ff0e1ee5ea6b538358da9ac08fb9ca73979b9 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 15 八月 2023 14:24:40 +0800 Subject: [PATCH] 2023-08-15 --- src/views/systemproc/proc/index.jsx | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/src/views/systemproc/proc/index.jsx b/src/views/systemproc/proc/index.jsx index d9be6a9..73dd12e 100644 --- a/src/views/systemproc/proc/index.jsx +++ b/src/views/systemproc/proc/index.jsx @@ -13,7 +13,7 @@ class ProcControl extends Component { state = { - procName: '', + procName: this.props.func || '', content: '', loading: false, visible: false, @@ -57,6 +57,12 @@ } }) } + + if (this.props.func) { + setTimeout(() => { + this.search(this.props.func) + }, 500) + } } search = (value) => { -- Gitblit v1.8.0