升级包
axios({ url: '/pts/sys/TSysFile/uploadJar', method: 'post', data: formData, onUploadProgress: ({ total, loaded }) => { this.porgress1.percent = Math.round((loaded / total) * 100).toFixed(2) }, headers: { 'Content-Type': 'application/json;charset=UTF-8' } }) .then(res => { if (res.code === 0) { this.fullPathList = res.fullPathList changeProgress(1, 2, this) this.upgradeFinish() } else { this.$message.error(res.msg) } }) .catch(() => { this.$message.error('系统错误,请稍后再试') }) .finally(() => { })
请阅读后点赞,谢谢