fix
This commit is contained in:
@@ -754,9 +754,11 @@ export default defineComponent({
|
||||
}
|
||||
if(key == 'upImgFiles')imgWidth[key] = setImageWidth(key,img);
|
||||
|
||||
let url = imgUrl.split('?')[0]
|
||||
var match = url.match(/^(?:https?:\/\/[^\/]+)\/(.*)/);
|
||||
minioUrl = match[1]
|
||||
// let url = imgUrl.split('?')[0]
|
||||
// var match = url.match(/^(?:https?:\/\/[^\/]+)\/(.*)/);
|
||||
const { pathname } = new URL(imgUrl);
|
||||
const result = pathname.slice(1);
|
||||
minioUrl = result
|
||||
// let id =
|
||||
let proportion = img.height / img.width; //计算图形宽高比例
|
||||
// let imgWidth = setImageWidth(key)
|
||||
|
||||
Reference in New Issue
Block a user