Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
xianyu-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
yyq
5 years ago
Commit
8a73a54dfb54c6681991d7b8c30ab40d61ee478c
1 parent
7ab88fe7
fix login
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
apps/entry-client.js
apps/pages/passport/auth.vue
apps/entry-client.js
View file @
8a73a54
...
...
@@ -85,7 +85,7 @@ yoho.auth = async (args) => {
}
=
args
||
{};
let
user
;
if
(
needLogin
)
{
if
(
!
needLogin
)
{
user
=
await
sdk
.
getUser
(
true
);
}
...
...
apps/pages/passport/auth.vue
View file @
8a73a54
...
...
@@ -124,8 +124,14 @@ export default {
this.uploading = true;
},
successHandler(file) {
if (get(file, 'response.code') === 200 && this.uploadCallback) {
this.uploadCallback(get(file, 'response.data.imagesList[0]'), file.url);
if (get(file, 'response.code') === 200) {
this.uploadCallback && this.uploadCallback(get(file, 'response.data.imagesList[0]'), file.url);
} else {
this.$createToast && this.$createToast({
txt: res.message || '上传失败',
type: 'txt',
time: 1000
}).show();
}
this.uploading = false;
...
...
Please
register
or
login
to post a comment