Skip to content

Commit

Permalink
修复verified固定参数
Browse files Browse the repository at this point in the history
  • Loading branch information
cn-kali-team committed Feb 13, 2024
1 parent 9f21f89 commit 8b79da2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion nvd-model/src/types.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use std::collections::HashMap;
#[cfg(feature = "db")]
use crate::DB;
#[cfg(feature = "db")]
Expand All @@ -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};

Expand Down
8 changes: 2 additions & 6 deletions nvd-yew/src/component/exp_query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ impl Component for EXPQuery {
}

fn view(&self, ctx: &Context<Self>) -> 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();
Expand Down Expand Up @@ -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,
})
})
Expand Down
2 changes: 1 addition & 1 deletion nvd-yew/src/routes/exp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit 8b79da2

Please sign in to comment.