调整
This commit is contained in:
@@ -30,10 +30,10 @@
|
||||
}
|
||||
},
|
||||
created(){
|
||||
this.initWebSocket();
|
||||
// this.initWebSocket();
|
||||
},
|
||||
methods: {
|
||||
initWebSocket() {
|
||||
/* initWebSocket() {
|
||||
this.websocket = new WebSocket(process.env.VUE_APP_WS_URL);
|
||||
this.websocket.onmessage = (event) => {
|
||||
this.uploading = true;
|
||||
@@ -52,8 +52,8 @@
|
||||
}
|
||||
})
|
||||
console.log('this.progressArr=' + this.progressArr);
|
||||
/* let progress = msgStr.substring(msgStr.indexOf("/") + 1, msgStr.length);
|
||||
this.progress = parseInt(msgArr[2])*/
|
||||
/!* let progress = msgStr.substring(msgStr.indexOf("/") + 1, msgStr.length);
|
||||
this.progress = parseInt(msgArr[2])*!/
|
||||
// if (progress === '100%') {
|
||||
// this.websocket.close();
|
||||
// }
|
||||
@@ -61,7 +61,7 @@
|
||||
this.websocket.onclose = () => {
|
||||
console.log('WebSocket connection closed');
|
||||
};
|
||||
},
|
||||
}, */
|
||||
checkDuplicate(docId) {
|
||||
return this.progressArr.findIndex(t => t['docId'] == docId) == -1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user