fix; bug
This commit is contained in:
@@ -64,6 +64,10 @@
|
||||
watch: {
|
||||
imgId: {
|
||||
handler(newval, oldval) {
|
||||
if(newval.indexOf('/') === 0) {
|
||||
this.imgUrlShow = this.base_url + newval
|
||||
return
|
||||
}
|
||||
if(newval.indexOf('http') === 0){
|
||||
this.imgUrlShow = newval
|
||||
return
|
||||
@@ -128,7 +132,9 @@
|
||||
},
|
||||
mounted() {
|
||||
if (this.imgId) {
|
||||
if(this.imgId.indexOf('http') === 0){
|
||||
if(this.imgId.indexOf('/') === 0) {
|
||||
this.imgUrlShow = this.base_url + this.imgId
|
||||
}else if(this.imgId.indexOf('http') === 0){
|
||||
this.imgUrlShow = this.imgId
|
||||
}else{
|
||||
this.getPreviewUrlBlob(this.imgId);
|
||||
|
||||
Reference in New Issue
Block a user