Просмотр исходного кода

fix: Script profile invalid

#347
MystiPanda 1 год назад
Родитель
Сommit
b67db4a896
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      src-tauri/src/enhance/mod.rs

+ 1 - 0
src-tauri/src/enhance/mod.rs

@@ -66,6 +66,7 @@ pub fn enhance() -> (Mapping, Vec<String>, HashMap<String, ResultLog>) {
             match use_script(script, config.to_owned()) {
                 Ok((res_config, res_logs)) => {
                     exists_keys.extend(use_keys(&res_config));
+                    config = res_config;
                     logs.extend(res_logs);
                 }
                 Err(err) => logs.push(("exception".into(), err.to_string())),