feat: 补充播客上传声音接口 #1789

This commit is contained in:
binaryify
2023-08-24 16:38:10 +08:00
parent d7cf9d1c2f
commit 954093864d
9 changed files with 178 additions and 9 deletions
+2 -2
View File
@@ -34,14 +34,14 @@
)
const res = await axios({
url: `/user/detail?uid=32953014&timestamp=${Date.now()}`,
withCredentials: true, //关键
withCredentials: true, //跨域的话必须设置
})
document.querySelector('#avatar').src = res.data.profile.avatarUrl
}
async function login() {
const res = await axios({
url: `/login/cellphone?phone=${phone}&password=${password}`,
withCredentials: true, //关键
withCredentials: true, //跨域的话必须设置
})
cookieToken = res.data.cookie
}