mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-17 01:14:50 +08:00
修改Cookie管理刷新逻辑
This commit is contained in:
@@ -91,7 +91,7 @@ const Config = () => {
|
||||
const [value, setValue] = useState();
|
||||
const [loading, setLoading] = useState(true);
|
||||
|
||||
const getConfig = () => {
|
||||
const getCookies = () => {
|
||||
setLoading(true);
|
||||
request
|
||||
.get(`${config.apiPrefix}cookies`)
|
||||
@@ -167,6 +167,7 @@ const Config = () => {
|
||||
title: '获取Cookie成功',
|
||||
content: <div>{cookie}</div>,
|
||||
});
|
||||
getCookies();
|
||||
break;
|
||||
}
|
||||
if (errcode !== 176) {
|
||||
@@ -207,7 +208,7 @@ const Config = () => {
|
||||
setMarginLeft(0);
|
||||
setMarginTop(-72);
|
||||
}
|
||||
getConfig();
|
||||
getCookies();
|
||||
}, []);
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user