|
|
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 });
|
|
|
},
|
...
|
...
|
|