Commit fa1d6093 authored by “yiyousong”'s avatar “yiyousong”

pref:修改预览

parent 4c604d7d
......@@ -31,7 +31,7 @@
height: v.height + 'px',
}"
class="preview-img"
:src="api + v.preViewPath"
:src="api + v.samplePath"
/>
</div>
</div>
......@@ -141,7 +141,7 @@ export default {
let { data } = res.data.data;
data.forEach((v) => {
let image = new Image();
image.src = this.api + v.preViewPath;
image.src = this.api + v.samplePath;
image.onload = function () {
v.height = image.height;
};
......
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