update tasks and config

This commit is contained in:
MistEO
2021-07-14 17:26:36 +08:00
parent d57bc069f2
commit dbbb5fd6b0
6 changed files with 137 additions and 104 deletions

View File

@@ -8,9 +8,9 @@
using namespace asst;
json::object Configer::dataObj;
json::object Configer::handleObj;
json::object Configer::optionsObj;
json::object Configer::tasksJson;
json::object Configer::handleJson;
json::object Configer::optionsJson;
std::string Configer::m_curDir;
@@ -32,9 +32,9 @@ bool Configer::reload()
}
auto root = std::move(ret).value();
dataObj = root["data"].as_object();
handleObj = root["handle"].as_object();
optionsObj = root["options"].as_object();
tasksJson = root["tasks"].as_object();
handleJson = root["handle"].as_object();
optionsJson = root["options"].as_object();
return true;