重构环境变量管理,添加脚本查看

This commit is contained in:
hanhh
2021-06-20 17:47:12 +08:00
parent 7ed1abde36
commit 0fade7a5a9
30 changed files with 848 additions and 976 deletions
+2 -2
View File
@@ -15,7 +15,7 @@ const Crontab = () => {
const [loading, setLoading] = useState(true);
const getConfig = () => {
request.get(`${config.apiPrefix}config/config`).then((data) => {
request.get(`${config.apiPrefix}configs/config.sh`).then((data) => {
setValue(data.data);
});
};
@@ -23,7 +23,7 @@ const Crontab = () => {
const getSample = () => {
setLoading(true);
request
.get(`${config.apiPrefix}config/sample`)
.get(`${config.apiPrefix}config/config.sample.sh`)
.then((data) => {
setSample(data.data);
})