pref: 优化类型判断

master
钟良源 5 months ago
parent 176f1bf6b2
commit 9998e2073d

@ -16,7 +16,7 @@ function Announcement() {
axios
.get('/api/workplace/announcement')
.then((res) => {
setData(res.data);
setData(res as any);
})
.finally(() => {
setLoading(false);

@ -67,7 +67,7 @@ function Overview() {
axios
.get('/api/workplace/overview-content')
.then((res) => {
setData(res.data);
setData(res as any);
})
.finally(() => {
setLoading(false);

Loading…
Cancel
Save