|  |  |  | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | data() { | 
|---|
|  |  |  | return { | 
|---|
|  |  |  | uploadImgUrl: process.env.VUE_APP_API_PREFIX + '/public/uploadLocal', | 
|---|
|  |  |  | uploadImgUrl: process.env.VUE_APP_API_PREFIX + '/public/upload', | 
|---|
|  |  |  |  | 
|---|
|  |  |  | realList: [], | 
|---|
|  |  |  | srcList: [], | 
|---|
|  |  |  | 
|---|
|  |  |  | watch: { | 
|---|
|  |  |  | fileList: { | 
|---|
|  |  |  | handler(val) { | 
|---|
|  |  |  | console.log(val); | 
|---|
|  |  |  | if (val.length==0) { | 
|---|
|  |  |  | this.realList = [] | 
|---|
|  |  |  | this.srcList = [] | 
|---|
|  |  |  | 
|---|
|  |  |  | this.showViewer = false | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | handleRemove(file) { | 
|---|
|  |  |  | console.log(this.fileList); | 
|---|
|  |  |  | let tempIndex = this.realList.findIndex(item => item.url === file.url) | 
|---|
|  |  |  | console.log(file.url); | 
|---|
|  |  |  | let tempIndex = this.fileList.findIndex(item => item.url === file.url) | 
|---|
|  |  |  | // debugger | 
|---|
|  |  |  | this.realList.splice(tempIndex, 1) | 
|---|
|  |  |  | this.fileList.splice(tempIndex, 1) | 
|---|