修复画布图片加载不出来问题
This commit is contained in:
@@ -296,8 +296,8 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
let url = imgUrl.split('?')[0]
|
||||
var match = url.match(/:(\d+)\/(.*)/);
|
||||
minioUrl = match[2]
|
||||
var match = url.match(/^(?:https?:\/\/[^\/]+)\/(.*)/);
|
||||
minioUrl = match[1]
|
||||
// let id =
|
||||
let proportion = img.height / img.width; //计算图形宽高比例
|
||||
let scaleWH = imgWidth[key] / img.width; //计算放到画布上缩小倍率
|
||||
|
||||
Reference in New Issue
Block a user