|
@@ -20,8 +20,11 @@ import simpleInfoForm from '../form/simpleInfo.vue'
|
|
|
import { savePersonSimpleInfo } from '@/api/recruit/personal/shareJob'
|
|
|
import { useI18n } from '@/hooks/web/useI18n'; const { t } = useI18n()
|
|
|
import Snackbar from '@/plugins/snackbar'
|
|
|
+import { useUserStore } from '@/store/user'
|
|
|
+import { useRouter } from 'vue-router'
|
|
|
import { ref } from 'vue'
|
|
|
defineOptions({name: 'shareJob-sendResume-simple'})
|
|
|
+
|
|
|
const emit = defineEmits(['simpleInfoReady'])
|
|
|
const props = defineProps({
|
|
|
closeable: {
|
|
@@ -36,6 +39,8 @@ const props = defineProps({
|
|
|
|
|
|
const openDialog = ref(false) // 默认不打开弹窗,先检验simpleInfoReady
|
|
|
const info = ref(null)
|
|
|
+const store = useUserStore()
|
|
|
+const router = useRouter()
|
|
|
|
|
|
// 查询用户基本信息
|
|
|
const timer = ref(null)
|
|
@@ -68,6 +73,10 @@ const getUserInfoVerify = () => {
|
|
|
const getUserInfoFail = () => {
|
|
|
if (timer.value) clearInterval(timer.value); timer.value = null
|
|
|
Snackbar.error(t('login.getUserInfoFailed')+','+t('login.loginAgain'))
|
|
|
+ setTimeout(() => {
|
|
|
+ store.userLogout(1)
|
|
|
+ router.push('/login')
|
|
|
+ }, 3000)
|
|
|
}
|
|
|
|
|
|
const formRef = ref()
|