Authored by 陈峰

上传图片增加http

... ... @@ -24,7 +24,7 @@
:on-format-error="handleFormatError"
:on-exceeded-size="handleMaxSize"
type="drag"
action="/upload/image"
action="/Api/upload/image"
style="display: inline-block;width:120px;">
<div style="width: 120px;height:120px;line-height: 140px;">
<Icon type="plus-round" size="50"></Icon>
... ...
... ... @@ -16,8 +16,6 @@ export default {
data() {
return {
};
},
methods: {
}
};
</script>
... ...
... ... @@ -15,11 +15,11 @@ class FileService extends Context {
url = domain + url;
if (stag === '01') {
return `//img11.${url}`;
return `http://img11.${url}`;
} else if (stag === '03') {
return `//flv01.${url}`;
return `http://flv01.${url}`;
} else {
return `//img12.${url}`;
return `http://img12.${url}`;
}
}
}
... ...