fix; bug

This commit is contained in:
yanghang
2025-07-15 15:23:58 +08:00
parent 0f79e7bfda
commit 7eb43b153b
9 changed files with 79 additions and 35 deletions
@@ -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);