文件上传loading

master
lion 9 months ago
parent e8212b2b3d
commit 29d4a3d45c

@ -100,13 +100,14 @@ import Sortable from 'sortablejs';
* *
* Currently MockJs will be used in the production environment, * Currently MockJs will be used in the production environment,
* please remove it before going online ! ! ! * please remove it before going online ! ! !
*/ */
if (process.env.NODE_ENV === 'production') {
const { // if (process.env.NODE_ENV === 'production') {
mockXHR // const {
} = require('../mock') // mockXHR
mockXHR() // } = require('../mock')
} // mockXHR()
// }
new Vue({ new Vue({
el: '#app', el: '#app',

@ -238,6 +238,7 @@
handleProgress(event, file, fileList) { handleProgress(event, file, fileList) {
this.showProgress = true; this.showProgress = true;
this.uploadProgress = event.percent; this.uploadProgress = event.percent;
console.log("uploadProgress",this.showProgress,uploadProgress,event)
}, },
async getCategoryList() { async getCategoryList() {
const res = await getCategory({ const res = await getCategory({

Loading…
Cancel
Save