Showing
2 changed files
with
4 additions
and
4 deletions
@@ -59,7 +59,7 @@ export default { | @@ -59,7 +59,7 @@ export default { | ||
59 | methods: { | 59 | methods: { |
60 | fileSubmit(file) { | 60 | fileSubmit(file) { |
61 | this.action.data.token = this.token; | 61 | this.action.data.token = this.token; |
62 | - this.action.data.key = Date.now() + file.name; | 62 | + this.action.data.key = '/license/' + Date.now() + '/' + file.name; |
63 | }, | 63 | }, |
64 | filesAdded(files) { | 64 | filesAdded(files) { |
65 | let hasIgnore = false; | 65 | let hasIgnore = false; |
@@ -98,7 +98,7 @@ export default { | @@ -98,7 +98,7 @@ export default { | ||
98 | showImagePreview() { | 98 | showImagePreview() { |
99 | if (this.value && this.value[0] && this.value[0].response && this.value[0].response.key) { | 99 | if (this.value && this.value[0] && this.value[0].response && this.value[0].response.key) { |
100 | this.$createImagePreview({ | 100 | this.$createImagePreview({ |
101 | - imgs: ['//cdn.yoho.cn/' + this.value[0].response.key + '?imageView2/2/w/450/q/20'] | 101 | + imgs: ['//img01.yohoboys.com/' + this.value[0].response.key + '?imageView2/2/w/450/q/20'] |
102 | }).show(); | 102 | }).show(); |
103 | } | 103 | } |
104 | }, | 104 | }, |
1 | import * as Types from './types'; | 1 | import * as Types from './types'; |
2 | 2 | ||
3 | function _url({ name }) { | 3 | function _url({ name }) { |
4 | - return `//cdn.yoho.cn/${name}`; | 4 | + return `//img01.yohoboys.com/${name}`; |
5 | } | 5 | } |
6 | 6 | ||
7 | function _handleData(data) { | 7 | function _handleData(data) { |
@@ -24,7 +24,7 @@ function _handleData(data) { | @@ -24,7 +24,7 @@ function _handleData(data) { | ||
24 | 24 | ||
25 | export default { | 25 | export default { |
26 | async fetchToken({ commit }) { | 26 | async fetchToken({ commit }) { |
27 | - const result = await this.$api.get('/getToken?type=yohocdn'); | 27 | + const result = await this.$api.get('/getToken'); |
28 | 28 | ||
29 | commit(Types.FETCH_UFO_UPLOAD_TOKEN_SUCCESS, { token: result.uptoken }); | 29 | commit(Types.FETCH_UFO_UPLOAD_TOKEN_SUCCESS, { token: result.uptoken }); |
30 | }, | 30 | }, |
-
Please register or login to post a comment