diff --git a/root/detail/job.vue b/root/detail/job.vue index beb11ce..85466c8 100644 --- a/root/detail/job.vue +++ b/root/detail/job.vue @@ -703,14 +703,9 @@ export default { this.IS_CREATOR = uni.getStorageSync("IS_CREATOR") == 1 ? true : false; console.log("this.IS_CREATOR", this.IS_CREATOR); this.corpUserFlag = uni.getStorageSync("apply-userinfo").corpUserFlag; - this.getIgnore(); - uni.getSystemInfo({ - success: function (res) { - console.log(res); - that.wxPlat = res.hostName; - }, - }); - this.getDetail().then((res) => { + if(uni.getStorageSync("apply-token")){ + this.getIgnore(); + this.getDetail().then((res) => { console.log("res", res); let objMiddle = res.cozeStructureRes ? JSON.parse(res.cozeStructureRes) : {}; // let objMiddle = JSON.parse(res.cozeStructureRes); @@ -746,6 +741,14 @@ export default { }); this.toKnowInfo(res.agencyId); }); + } + uni.getSystemInfo({ + success: function (res) { + console.log(res); + that.wxPlat = res.hostName; + }, + }); + }, methods: {