commit
This commit is contained in:
@@ -69,8 +69,9 @@ module.exports = {
|
||||
|
||||
// 可选:轮询或 watch ready 状态
|
||||
const checkReady = () => {
|
||||
if (window.webSocketPubSub.ws.readyState === 1) {
|
||||
this.loading = false; // 允许签字
|
||||
if (webSocketPubSub.ws && webSocketPubSub.ws.readyState === WebSocket.OPEN) {
|
||||
console.info("ws.readyState is open");
|
||||
this.loading = false;
|
||||
} else {
|
||||
setTimeout(checkReady, 100);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user