mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-05-23 22:37:41 +08:00
update
This commit is contained in:
parent
8df5d7a790
commit
726f21b1e2
@ -8,7 +8,7 @@
|
|||||||
<body>
|
<body>
|
||||||
|
|
||||||
<input id="file" type="file" name="filename" />
|
<input id="file" type="file" name="filename" />
|
||||||
<img id="avatar" style="height: 200px; width: 200px; border-radius: 50%;" />
|
<img id="playlist_cover" style="height: 200px; width: 200px; border-radius: 50%;" />
|
||||||
<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.20.0-0/axios.min.js
|
<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.20.0-0/axios.min.js
|
||||||
"></script>
|
"></script>
|
||||||
<script>
|
<script>
|
||||||
@ -42,7 +42,7 @@
|
|||||||
const res = await axios({
|
const res = await axios({
|
||||||
url: `http://localhost:${port}/playlist/detail?id=${playlist_id}`,
|
url: `http://localhost:${port}/playlist/detail?id=${playlist_id}`,
|
||||||
})
|
})
|
||||||
document.querySelector('#avatar').src = res.data.playlist.coverImgUrl
|
document.querySelector('#playlist_cover').src = res.data.playlist.coverImgUrl
|
||||||
}
|
}
|
||||||
async function login() {
|
async function login() {
|
||||||
const res = await axios({
|
const res = await axios({
|
||||||
@ -63,7 +63,7 @@
|
|||||||
},
|
},
|
||||||
data: formData,
|
data: formData,
|
||||||
})
|
})
|
||||||
document.querySelector('#avatar').src = res.data.data.url
|
document.querySelector('#playlist_cover').src = res.data.data.url
|
||||||
}
|
}
|
||||||
function getImgSize(file) {
|
function getImgSize(file) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user