This commit is contained in:
xingyu
2022-11-22 22:03:02 +08:00
parent 557f2937f5
commit 6f1f24b43e
9 changed files with 33 additions and 32 deletions

View File

@@ -24,13 +24,15 @@
<script setup lang="ts">
import { onMounted, ref } from 'vue'
import { ElTable, ElTableColumn } from 'element-plus'
import { useMessage } from '@/hooks/web/useMessage'
import { SystemUserSocialTypeEnum } from '@/utils/constants'
import { getUserProfileApi, ProfileVO } from '@/api/system/user/profile'
import { socialAuthRedirect, socialUnbind } from '@/api/system/user/socialUser'
import { ElMessage } from 'element-plus'
const message = useMessage()
const socialUsers = ref<any[]>([])
const userInfo = ref<ProfileVO>()
const initSocial = async () => {
const res = await getUserProfileApi()
userInfo.value = res
@@ -59,7 +61,7 @@ const unbind = async (row) => {
if (res) {
row.openid = undefined
}
ElMessage.success('解绑成功')
message.success('解绑成功')
}
onMounted(async () => {