From 8b79da2ff9d78cf476f52a02915f479a3bf5d492 Mon Sep 17 00:00:00 2001 From: cn-kali-team Date: Tue, 13 Feb 2024 19:55:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dverified=E5=9B=BA=E5=AE=9A?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nvd-model/src/types.rs | 2 +- nvd-yew/src/component/exp_query.rs | 8 ++------ nvd-yew/src/routes/exp.rs | 2 +- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/nvd-model/src/types.rs b/nvd-model/src/types.rs index fa56e9c..81c6651 100644 --- a/nvd-model/src/types.rs +++ b/nvd-model/src/types.rs @@ -1,4 +1,3 @@ -use std::collections::HashMap; #[cfg(feature = "db")] use crate::DB; #[cfg(feature = "db")] @@ -10,6 +9,7 @@ use diesel::{backend::Backend, deserialize, serialize, sql_types::Json, AsExpres #[cfg(feature = "db")] use serde::de::DeserializeOwned; use serde::{Deserialize, Serialize}; +use std::collections::HashMap; use std::fmt::Debug; use std::ops::{Deref, DerefMut}; diff --git a/nvd-yew/src/component/exp_query.rs b/nvd-yew/src/component/exp_query.rs index e8678fb..8e264a6 100644 --- a/nvd-yew/src/component/exp_query.rs +++ b/nvd-yew/src/component/exp_query.rs @@ -23,7 +23,7 @@ impl Component for EXPQuery { } fn view(&self, ctx: &Context) -> Html { - let is_verified = ctx.props().is_verified.unwrap_or_default(); + // let is_verified = ctx.props().is_verified.unwrap_or_default(); let query = ctx.props().props.clone(); let query_source = ctx.props().query_source.clone(); let source_input = NodeRef::default(); @@ -58,11 +58,7 @@ impl Component for EXPQuery { }, size: query.size, page: query.page, - verified: if is_verified { - Some(is_verified as u8) - } else { - None - }, + verified: None, path: None, }) }) diff --git a/nvd-yew/src/routes/exp.rs b/nvd-yew/src/routes/exp.rs index 655c6e9..7bd81fc 100644 --- a/nvd-yew/src/routes/exp.rs +++ b/nvd-yew/src/routes/exp.rs @@ -177,7 +177,7 @@ impl ExploitInfoList { .callback(|args: QueryExploit| Msg::Query(QueryMsg::Query(args))); let p = EXPQueryProps { props: self.query.clone(), - is_verified: Some(true), + is_verified: None, query_source, query, };