mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 09:45:36 +08:00
初始化api
This commit is contained in:
1 parent
f1f8ece8a2
commit
99a8dc78db
28 files changed
+664
-49
No files matched your search
@@ -15,9 +15,12 @@ const Config = () => {
|
||||
|
||||
const getConfig = () => {
|
||||
setLoading(true);
|
||||
request.get(`${config.apiPrefix}config/config`).then((data) => {
|
||||
setValue(data);
|
||||
}).finally(() => setLoading(false));
|
||||
request
|
||||
.get(`${config.apiPrefix}config/config`)
|
||||
.then((data) => {
|
||||
setValue(data.content);
|
||||
})
|
||||
.finally(() => setLoading(false));
|
||||
};
|
||||
|
||||
const updateConfig = () => {
|
||||
|
||||
Reference in new issue
Block a user