chore: fix render_template need_reload
This commit is contained in:
parent
3258b05bc1
commit
c208bf07f1
@ -219,6 +219,11 @@ impl ReqTasks {
|
||||
match hash_from_data(format!("{}/{}", &root_path, &data_path).as_str(), ctx, data_hash, true) {
|
||||
Ok(_) => {
|
||||
let mut need_reload = false;
|
||||
if let Some(has_reload) = ctx.get("need_reload") {
|
||||
if has_reload == "true" {
|
||||
need_reload=true;
|
||||
}
|
||||
}
|
||||
for (key, value) in data_hash.iter() {
|
||||
if key.as_str() == "need_reload" {
|
||||
need_reload = true;
|
||||
|
Loading…
Reference in New Issue
Block a user