|
|
@@ -55,9 +55,9 @@ export const useUserStore = defineStore('user', {
|
|
|
}
|
|
|
},
|
|
|
|
|
|
- async unbindSocial(social_type) {
|
|
|
+ async unbindSocial(type) {
|
|
|
try {
|
|
|
- const res = await unbindSocial({ social_type })
|
|
|
+ const res = await unbindSocial({ type })
|
|
|
if (!res || res.code !== 0) throw new Error(res?.msg ?? '解绑失败!请稍后再试')
|
|
|
const user = await this.getInfoFromServer()
|
|
|
return res.data || user
|