wayne преди 6 години
родител
ревизия
e0ce34b214
променени са 1 файла, в които са добавени 4 реда и са изтрити 3 реда
  1. 4 3
      pages/job/_post/_id.vue

+ 4 - 3
pages/job/_post/_id.vue

@@ -76,9 +76,6 @@
         let res = await this.$axios.$post("/api/recruit/getRecruit", params)
         if (res.status === 1) {
           this.recruitData = res.data
-          if (this.recruitData.loginStatus === -99) {
-            location.href = 'proginn://login'
-          }
         }
       },
       async handleRefreshClick() {
@@ -131,6 +128,10 @@
         location.href = `proginn://recruit/edit?id=${recruitId}`
       },
       async handleContactClick() {
+        if (this.recruitData.loginStatus === -99) {
+          location.href = 'proginn://login'
+          return
+        }
         const recruitId = this.recruitId
         const params = {
           recruitId