Skip to content

Commit 8d42ec4

Browse files
author
tsm
committed
fix: refresh
1 parent 75b58e6 commit 8d42ec4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

res/js/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,10 @@ axios.get(window.prefix + "/api/comm/initData",{}).then((initData)=>{
201201
this.roomId = parseInt(Math.random() * 100000);
202202
this.addPopup("你刷新了房间号, 当前房间号为 "+this.roomId);
203203
this.logs.push("你刷新了房间号, 当前房间号为 "+this.roomId);
204-
$("#refresh").removeClass("layui-anim-rotate").addClass("layui-anim-rotate")
204+
$("#refresh").removeClass("layui-anim-rotate")
205+
setTimeout(()=>{
206+
$("#refresh").addClass("layui-anim-rotate")
207+
},50)
205208
}
206209
},
207210
genNickName : function () {

0 commit comments

Comments
 (0)