somewhere

This commit is contained in:
Swift
2023-08-17 13:05:51 +03:30
parent 30c7eb0e7b
commit 53843207cc
429 changed files with 117489 additions and 1 deletions
+24
View File
@@ -0,0 +1,24 @@
export default {
data() {
return {
axiosConfig: {
onUploadProgress: progressEvent => {
if (progressEvent.total / 1024 > 100) {
const text = 'درحال آپلود '
const uploadLayout = this.$loading({
lock: true,
text,
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
})
document.querySelector('.el-loading-text').innerText =
text + Math.floor((progressEvent.loaded / progressEvent.total) * 100) + '%'
if ((progressEvent.loaded / progressEvent.total) * 100 === 100) {
uploadLayout.close()
}
}
}
}
}
}
}