Commit e9cdcaa7 authored by 华国豪's avatar 华国豪 🙄

1

parent 952c7746
......@@ -1539,6 +1539,7 @@
return uuid.join('');
},
uploadpic(e){
console.log(e)
let that=this;
if(e.target.files.length>0 && e.target.files[0].size>0){
// 压缩图片需要的一些元素和对象
......@@ -1548,7 +1549,7 @@
let newArr = [];
newArr.push(blob);
var fileName = `${that.uuid(10,10)}.png`;
var path = `/feature/${that.cid}/${fileName}`;
var path = `/newFeature/${fileName}`;
that.uploadBlob(path, newArr, x => {
let allPath=that.domainManager().ViittoFileUrl+x.name;
let i=e.target.id.split('_')[2];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment