初始化api

This commit is contained in:
whyour
2021-03-15 21:09:30 +08:00
parent f1f8ece8a2
commit 99a8dc78db
28 changed files with 664 additions and 49 deletions
+6 -3
View File
@@ -14,9 +14,12 @@ const Crontab = () => {
const getConfig = () => {
setLoading(true);
request.get(`${config.apiPrefix}config/crontab`).then((data) => {
setValue(data);
}).finally(() => setLoading(false));
request
.get(`${config.apiPrefix}config/crontab`)
.then((data) => {
setValue(data.content);
})
.finally(() => setLoading(false));
};
const updateConfig = () => {