|
@@ -157,7 +157,7 @@
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
defineOptions({ name: 'position-details' })
|
|
defineOptions({ name: 'position-details' })
|
|
-import { ref } from 'vue'
|
|
|
|
|
|
+import { nextTick, ref } from 'vue'
|
|
import { useRouter } from 'vue-router'
|
|
import { useRouter } from 'vue-router'
|
|
import Snackbar from '@/plugins/snackbar'
|
|
import Snackbar from '@/plugins/snackbar'
|
|
import html2canvas from 'html2canvas'
|
|
import html2canvas from 'html2canvas'
|
|
@@ -241,7 +241,9 @@ let loginCloseWarningWord = ''
|
|
const loginSuccess = () => {
|
|
const loginSuccess = () => {
|
|
showLogin.value = false
|
|
showLogin.value = false
|
|
Snackbar.success('登录成功')
|
|
Snackbar.success('登录成功')
|
|
- if (nextFunc.value) nextFunc.value()
|
|
|
|
|
|
+ nextTick(() => {
|
|
|
|
+ if (nextFunc.value) nextFunc.value()
|
|
|
|
+ })
|
|
// userInfo.value = localStorage.getItem('userInfo') ? JSON.parse(localStorage.getItem('userInfo')) : {}
|
|
// userInfo.value = localStorage.getItem('userInfo') ? JSON.parse(localStorage.getItem('userInfo')) : {}
|
|
// shareUrl.value = '/shareJob?' + new URLSearchParams({
|
|
// shareUrl.value = '/shareJob?' + new URLSearchParams({
|
|
// jobId: id,
|
|
// jobId: id,
|
|
@@ -438,18 +440,17 @@ const handleSubmit = async (val) =>{
|
|
}, 3000)
|
|
}, 3000)
|
|
}
|
|
}
|
|
|
|
|
|
-let toDetailsInfo = {}
|
|
|
|
|
|
+// let toDetailsInfo = {}
|
|
// 沟通
|
|
// 沟通
|
|
const toDetails = async (info) => {
|
|
const toDetails = async (info) => {
|
|
- if (info) toDetailsInfo = info // 快速登录弹窗回调使用
|
|
|
|
- else info = toDetailsInfo
|
|
|
|
|
|
+ // if (info) toDetailsInfo = info // 快速登录弹窗回调使用
|
|
|
|
+ // else info = toDetailsInfo
|
|
if (!getToken()) {
|
|
if (!getToken()) {
|
|
showLogin.value = true // 打开快速登录弹窗
|
|
showLogin.value = true // 打开快速登录弹窗
|
|
Snackbar.warning('您还未登录,请先登录后再试')
|
|
Snackbar.warning('您还未登录,请先登录后再试')
|
|
//
|
|
//
|
|
- nextFunc.value = null // 登录成功后要执行的操作
|
|
|
|
- // nextFunc.value = toDetails // 登录成功后要执行的操作
|
|
|
|
loginCloseWarningWord = '您已取消登录,无法对职位进行沟通' // 取消登录提示语
|
|
loginCloseWarningWord = '您已取消登录,无法对职位进行沟通' // 取消登录提示语
|
|
|
|
+ nextFunc.value = null // 登录成功后要执行的操作 (toDetails执行不成功,原因未找到)
|
|
return
|
|
return
|
|
}
|
|
}
|
|
try {
|
|
try {
|