Vue-resource uses the same process of progress and returns 100% directly.

related code blocks are as follows:

this.$http.post("/api/XXX", this.XXX, {
    progress: progressEvent => {
        if (progressEvent.lengthComputable) {
            this.$nextTick(() => {
                // this.percent = Math.ceil((progressEvent.loaded / progressEvent.total) * 100);
                console.log(Math.ceil((progressEvent.loaded / progressEvent.total) * 100));
            })
        }
    }
}).then(({ data: { code, data, message } }) => {

can only print out 100, there is no progress change process, how to change?

Nov.19,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bf2106-54a29.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bf2106-54a29.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?