Browse Source

修复部分bug

Pchen0 1 month ago
parent
commit
864efb020e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/store/modules/user.js

+ 2 - 2
src/store/modules/user.js

@@ -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