|
@@ -25,8 +25,8 @@ import studentInfoForm from './studentInfoForm.vue'
|
|
|
import { savePersonSimpleInfo, saveStudentSimpleInfo } from '@/api/recruit/personal/shareJob'
|
|
|
import CtDialog from '@/components/CtDialog'
|
|
|
import { useUserStore } from '@/store/user'; const userStore = useUserStore()
|
|
|
-import { useRoute } from 'vue-router'; const route = useRoute()
|
|
|
-import { useRouter } from 'vue-router'; const router = useRouter()
|
|
|
+// import { useRoute } from 'vue-router'; const route = useRoute()
|
|
|
+// import { useRouter } from 'vue-router'; const router = useRouter()
|
|
|
import Confirm from '@/plugins/confirm'
|
|
|
import { onMounted, ref } from 'vue'
|
|
|
import { getToken } from '@/utils/auth'
|
|
@@ -89,7 +89,7 @@ const simpleInfoSubmit = async () => {
|
|
|
dialog.value = false
|
|
|
overlay.value = false
|
|
|
props.sure()
|
|
|
- if (isStudent.value) router.push('/recruit/personal/personalCenter/student/information')
|
|
|
+ if (isStudent.value) window.location.href = '/recruit/personal/personalCenter/student/information'
|
|
|
} catch (error) {
|
|
|
console.error('error', error)
|
|
|
}
|
|
@@ -100,8 +100,7 @@ const handleLogout = () => {
|
|
|
Confirm('系统提示', '是否确定退出当前登录账号?').then(async () => {
|
|
|
await userStore.userLogout(1)
|
|
|
props.other()
|
|
|
- if (!route || route.path === '/recruitHome') location.reload()
|
|
|
- else router.push({ path: '/recruitHome' })
|
|
|
+ window.location.href = '/recruitHome'
|
|
|
})
|
|
|
}
|
|
|
</script>
|