Skip to content

Commit

Permalink
Update BindView.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
Muska-Ami authored Jan 11, 2025
1 parent 6fec99f commit 11dc7f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/views/callback/auth/oauth/qq/BindView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ let error = ref(false)
let success = ref(false)
let errorMessage = ref('')
const user_id = userData.getters.get_user_id
const userId = userData.getters.get_user_id
if (user_id == null) {
if (userId == null) {
error.value = true
errorMessage.value = '需要登录才能继续操作'
}
Expand All @@ -37,7 +37,7 @@ if (!error.value && code !== null) {
onMounted(async () => {
let rs
try {
rs = await api.v2.auth.oauth.qq.bind.post(get_user_id, code)
rs = await api.v2.auth.oauth.qq.bind.post(userId, code)
} catch (e) {
message.error('登录失败: ' + e)
error.value = true
Expand Down

0 comments on commit 11dc7f4

Please sign in to comment.