|
@@ -4,7 +4,7 @@
|
|
<!-- 标题 -->
|
|
<!-- 标题 -->
|
|
<div class="mt-3" v-if="!isMobile">
|
|
<div class="mt-3" v-if="!isMobile">
|
|
<v-btn v-if="pageType !== 'noLoginToRegister'" color="primary" variant="text" @click="router.push('/recruitHome')">{{ `<< 回到首页` }}</v-btn>
|
|
<v-btn v-if="pageType !== 'noLoginToRegister'" color="primary" variant="text" @click="router.push('/recruitHome')">{{ `<< 回到首页` }}</v-btn>
|
|
- <v-btn v-else color="primary" variant="text" @click="router.push('/login')">{{ `<< 回到登录页` }}</v-btn>
|
|
|
|
|
|
+ <v-btn v-else color="primary" variant="text" @click="handleToLogin">{{ `<< 回到登录页` }}</v-btn>
|
|
</div>
|
|
</div>
|
|
<!-- 表单 -->
|
|
<!-- 表单 -->
|
|
<div class="CtFormClass" :style="{width: isMobile ? '' : '600px'}">
|
|
<div class="CtFormClass" :style="{width: isMobile ? '' : '600px'}">
|
|
@@ -117,7 +117,9 @@ import { webContentStore } from '@/store/webContent'
|
|
import Confirm from '@/plugins/confirm'
|
|
import Confirm from '@/plugins/confirm'
|
|
import TextUI from '@/components/FormUI/TextInput'
|
|
import TextUI from '@/components/FormUI/TextInput'
|
|
import { findFirstDuplicateWithIndices } from '@/utils/dealData'
|
|
import { findFirstDuplicateWithIndices } from '@/utils/dealData'
|
|
|
|
+import { useUserStore } from '@/store/user'
|
|
|
|
|
|
|
|
+const userStore = useUserStore()
|
|
const webContent = webContentStore()
|
|
const webContent = webContentStore()
|
|
const { t } = useI18n()
|
|
const { t } = useI18n()
|
|
const CtFormRef = ref()
|
|
const CtFormRef = ref()
|
|
@@ -150,6 +152,11 @@ contactList[0].phone = bossPhone // 管理员手机号不能改
|
|
|
|
|
|
const contactCopy = ref([])
|
|
const contactCopy = ref([])
|
|
|
|
|
|
|
|
+const handleToLogin = async () => {
|
|
|
|
+ await userStore.userLogout(1)
|
|
|
|
+ router.push('/login')
|
|
|
|
+}
|
|
|
|
+
|
|
// 注册信息保存
|
|
// 注册信息保存
|
|
const enterpriseRegisterInfo = ref(localStorage.getItem('enterpriseRegisterInfo') ? JSON.parse(localStorage.getItem('enterpriseRegisterInfo')) : {})
|
|
const enterpriseRegisterInfo = ref(localStorage.getItem('enterpriseRegisterInfo') ? JSON.parse(localStorage.getItem('enterpriseRegisterInfo')) : {})
|
|
const saveRegisterInfo = () => {
|
|
const saveRegisterInfo = () => {
|