فهرست منبع

没有登录也可以分享

lifanagju_citu 10 ماه پیش
والد
کامیت
e1d4fe16ca
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      src/views/recruit/personal/position/components/details.vue
  2. 1 1
      src/views/recruit/personal/shareJob/index.vue

+ 1 - 1
src/views/recruit/personal/position/components/details.vue

@@ -188,7 +188,7 @@ const shareUrl = ref('')
 const userInfo = localStorage.getItem('userInfo') ? JSON.parse(localStorage.getItem('userInfo')) : {}
 const handleShare = async () => {
   // 分享链接携带参数: 用户id、职位id
-  if (!id || !userInfo.id) return
+  // if (!id || !userInfo.id) return
   shareUrl.value = '/shareJob?' + new URLSearchParams({
     jobId: id,
     sharedById: userInfo?.id,

+ 1 - 1
src/views/recruit/personal/shareJob/index.vue

@@ -116,7 +116,7 @@ const handleCheckJobDelivery = async () => {
 }
 
 // 判断有没有jobId跟sharedById,没有的话关闭当前窗口
-if (!jobId || !sharedById) {
+if (!jobId) { // !sharedById
   Snackbar.warning('当前打开的链接无效')
   setTimeout(() => {
     window.close()