Skip to content

Commit

Permalink
feat: 优化了一言数据加载
Browse files Browse the repository at this point in the history
  • Loading branch information
first19326 committed Nov 4, 2023
1 parent 46b187d commit 5097e18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Hitokoto.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ const getHitokotoData = () => {
fill: "#efefef",
}),
});
hitokotoData.text = "这里应该显示一句话";
hitokotoData.from = "無名";
});
};
// 更新一言数据
const updateHitokoto = () => {
hitokotoData.text = "新的一言正在赶来的路上";
hitokotoData.from = "来源加载中";
// 防抖
debounce(() => {
getHitokotoData();
Expand Down

0 comments on commit 5097e18

Please sign in to comment.