pref: 优化类型判断

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

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

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

Loading…
Cancel
Save