lifanagju_citu 8 månader sedan
förälder
incheckning
1f29967a56
1 ändrade filer med 5 tillägg och 3 borttagningar
  1. 5 3
      src/views/recruit/personal/shareJob/index.vue

+ 5 - 3
src/views/recruit/personal/shareJob/index.vue

@@ -104,7 +104,7 @@ defineOptions({name: 'recruit-personal-shareJob-index'})
 import loginPage from '@/views/common/loginDialog.vue'
 import simplePage from './sendResume/simple.vue'
 import selectPage from './sendResume/select.vue'
-import { computed, onMounted, reactive, ref } from 'vue';
+import { onMounted, reactive, ref } from 'vue';
 import { getPositionDetails, jobCvRelCheckSend, getPersonJobUnfavorite, getPersonJobFavorite, getJobFavoriteCheck } from '@/api/position'
 import { dealDictObjData } from '@/utils/position'
 import { getPersonalToken, getToken } from '@/utils/auth'
@@ -236,8 +236,9 @@ const handleClose = (key) => {
   sendResume[key] = false // 弹窗关闭,重置绑定数据
 }
 
-const showSwitchAccounts = computed(() => {
-  return (isMobile.value && getToken())
+const showSwitchAccounts = ref(false)
+onMounted(() => {
+  showSwitchAccounts.value = (isMobile.value && getToken())
 })
 
 // 切换账号
@@ -245,6 +246,7 @@ import { useUserStore } from '@/store/user'; const userStore = useUserStore()
 const handleSwitchAccounts = async () => {
   delivery.value = false // 重置投递状态
   isCollection.value = false // 重置收藏
+  showSwitchAccounts.value = false
   await userStore.userLogout(1)
   // location.reload()
   sendResume.showLogin = true