Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
ufo-app-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
htoooth
6 years ago
Commit
840b27973f39279030f1eddc8f8954b70ead5225
1 parent
788a9410
fix
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
apps/pages/single/license/components/upload.vue
apps/store/license/form/actions.js
apps/pages/single/license/components/upload.vue
View file @
840b279
...
...
@@ -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();
}
},
...
...
apps/store/license/form/actions.js
View file @
840b279
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
});
},
...
...
Please
register
or
login
to post a comment