Authored by htoooth

fix

... ... @@ -59,7 +59,7 @@ export default {
methods: {
fileSubmit(file) {
this.action.data.token = this.token;
this.action.data.key = Date.now() + file.name;
this.action.data.key = '/license/' + Date.now() + '/' + file.name;
},
filesAdded(files) {
let hasIgnore = false;
... ... @@ -98,7 +98,7 @@ export default {
showImagePreview() {
if (this.value && this.value[0] && this.value[0].response && this.value[0].response.key) {
this.$createImagePreview({
imgs: ['//cdn.yoho.cn/' + this.value[0].response.key + '?imageView2/2/w/450/q/20']
imgs: ['//img01.yohoboys.com/' + this.value[0].response.key + '?imageView2/2/w/450/q/20']
}).show();
}
},
... ...
import * as Types from './types';
function _url({ name }) {
return `//cdn.yoho.cn/${name}`;
return `//img01.yohoboys.com/${name}`;
}
function _handleData(data) {
... ... @@ -24,7 +24,7 @@ function _handleData(data) {
export default {
async fetchToken({ commit }) {
const result = await this.$api.get('/getToken?type=yohocdn');
const result = await this.$api.get('/getToken');
commit(Types.FETCH_UFO_UPLOAD_TOKEN_SUCCESS, { token: result.uptoken });
},
... ...