wupengfei
10 天以前 333c9f575a7fe7fd445a8ae6fb44d0fe23d93ae2
apps/underTakeMiniApp/src/subpackages/mine/setting/setting.vue
@@ -30,7 +30,7 @@
});
const userStore = useUserStore();
const { isBindWechat } = useUser();
const { isBindWechat, updateUserInfo } = useUser();
const queryClient = useQueryClient();
const userAccount = computed(() => {
@@ -60,7 +60,7 @@
async function handleUnbindWechat() {
  try {
    if (!isBindWechat) {
    if (!isBindWechat.value) {
      Message.error('您还没有绑定微信');
      return;
    }
@@ -69,6 +69,7 @@
    let res = await authServices.unBindUserWxmpId(params);
    if (res) {
      Message.success('解绑成功');
      updateUserInfo();
    }
  } catch (error) {}
}