diff --git a/src/pages/crontab/index.tsx b/src/pages/crontab/index.tsx index 3ff81419..5c606943 100644 --- a/src/pages/crontab/index.tsx +++ b/src/pages/crontab/index.tsx @@ -17,7 +17,7 @@ const Crontab = () => { request .get(`${config.apiPrefix}config/crontab`) .then((data) => { - setValue(data.content); + setValue(data.data); }) .finally(() => setLoading(false)); }; diff --git a/src/pages/diy/index.tsx b/src/pages/diy/index.tsx index a5d1ee0d..596582f3 100644 --- a/src/pages/diy/index.tsx +++ b/src/pages/diy/index.tsx @@ -15,7 +15,7 @@ const Crontab = () => { const getConfig = () => { setLoading(true); request - .get(`${config.apiPrefix}config/diy`) + .get(`${config.apiPrefix}config/extra`) .then((data) => { setValue(data.data); })