Authored by 陈峰

上传图片增加http

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