升级包

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(() => {

        })

 

posted @ 2022-02-18 11:00  小拐  阅读(146)  评论(0)    收藏  举报