feat: 优化了一言数据加载
This commit is contained in:
parent
46b187d01f
commit
5097e18e31
@ -59,13 +59,13 @@ const getHitokotoData = () => {
|
|||||||
fill: "#efefef",
|
fill: "#efefef",
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
hitokotoData.text = "这里应该显示一句话";
|
||||||
|
hitokotoData.from = "無名";
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
// 更新一言数据
|
// 更新一言数据
|
||||||
const updateHitokoto = () => {
|
const updateHitokoto = () => {
|
||||||
hitokotoData.text = "新的一言正在赶来的路上";
|
|
||||||
hitokotoData.from = "来源加载中";
|
|
||||||
// 防抖
|
// 防抖
|
||||||
debounce(() => {
|
debounce(() => {
|
||||||
getHitokotoData();
|
getHitokotoData();
|
||||||
|
Loading…
Reference in New Issue
Block a user