From 870e90fc2ae43c3fffc71fc5dcc29d14dd072d6a Mon Sep 17 00:00:00 2001 From: whyour Date: Fri, 2 Apr 2021 09:40:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=9A=E6=97=B6=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E4=B8=8D=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/crontab/index.tsx | 2 +- src/pages/diy/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); })