|
@@ -104,7 +104,7 @@ defineOptions({name: 'recruit-personal-shareJob-index'})
|
|
import loginPage from '@/views/common/loginDialog.vue'
|
|
import loginPage from '@/views/common/loginDialog.vue'
|
|
import simplePage from './sendResume/simple.vue'
|
|
import simplePage from './sendResume/simple.vue'
|
|
import selectPage from './sendResume/select.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 { getPositionDetails, jobCvRelCheckSend, getPersonJobUnfavorite, getPersonJobFavorite, getJobFavoriteCheck } from '@/api/position'
|
|
import { dealDictObjData } from '@/utils/position'
|
|
import { dealDictObjData } from '@/utils/position'
|
|
import { getPersonalToken, getToken } from '@/utils/auth'
|
|
import { getPersonalToken, getToken } from '@/utils/auth'
|
|
@@ -236,8 +236,9 @@ const handleClose = (key) => {
|
|
sendResume[key] = false // 弹窗关闭,重置绑定数据
|
|
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 () => {
|
|
const handleSwitchAccounts = async () => {
|
|
delivery.value = false // 重置投递状态
|
|
delivery.value = false // 重置投递状态
|
|
isCollection.value = false // 重置收藏
|
|
isCollection.value = false // 重置收藏
|
|
|
|
+ showSwitchAccounts.value = false
|
|
await userStore.userLogout(1)
|
|
await userStore.userLogout(1)
|
|
// location.reload()
|
|
// location.reload()
|
|
sendResume.showLogin = true
|
|
sendResume.showLogin = true
|