Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
Ygopro Arena Web
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GaiaXalter
Ygopro Arena Web
Commits
a4150eb4
Commit
a4150eb4
authored
Aug 09, 2017
by
ganjingcun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avatar
parent
a4e37118
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
src/api.js
src/api.js
+1
-1
src/components/Userinfo.vue
src/components/Userinfo.vue
+6
-1
No files found.
src/api.js
View file @
a4150eb4
...
...
@@ -45,7 +45,7 @@ export default class Api {
}
static
getAvatar
(
opt
)
{
return
`https://ygobbs.com/user_avatar/ygobbs.com/
${
opt
.
username
}
/400/1.png`
return
Vue
.
http
.
get
(
`https://api.moecube.com/accounts/users/
${
opt
.
username
}
.avatar`
)
}
static
getCardInfo
(
opt
)
{
...
...
src/components/Userinfo.vue
View file @
a4150eb4
...
...
@@ -356,7 +356,12 @@
}
if
(
!
username
)
return
this
.
avatar_url
=
API
.
getAvatar
({
username
:
username
});
var
_this
=
this
;
API
.
getAvatar
({
username
:
username
}).
then
((
res
)
=>
{
_this
.
avatar_url
=
res
.
data
},
(
res
)
=>
{
_this
.
avatar_url
=
"
https://cdn01.moecube.com/accounts/default_avatar.jpg
"
});
API
.
getUserInfo
({
username
:
username
}).
then
((
res
)
=>
{
this
.
hasError
=
false
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment