|  |  |  | 
|---|
|  |  |  | // } | 
|---|
|  |  |  | this.getTaskInfo() | 
|---|
|  |  |  | // 刷新token | 
|---|
|  |  |  | // const token = uni.getStorageSync('token') | 
|---|
|  |  |  | // if (token) { | 
|---|
|  |  |  | //   refreshToken().then(res => { | 
|---|
|  |  |  | //     if (res.code && res.code === 200) { | 
|---|
|  |  |  | //       this.$store.commit('setToken', res.data) | 
|---|
|  |  |  | //       console.log('res', res.data); | 
|---|
|  |  |  | //       // setTimeout(() => { | 
|---|
|  |  |  | //       //   this.getTaskInfo() | 
|---|
|  |  |  | //       // }, 1000) | 
|---|
|  |  |  | //     } | 
|---|
|  |  |  | //   }) | 
|---|
|  |  |  | // } | 
|---|
|  |  |  | setTimeout(() => { | 
|---|
|  |  |  | refreshToken().then(res => { | 
|---|
|  |  |  | if (res.code && res.code === 200) { | 
|---|
|  |  |  | this.$store.commit('setToken', res.data) | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }, 3000) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | mounted() { | 
|---|
|  |  |  | this.$eventBus.$on('taskBack', () => { | 
|---|
|  |  |  | console.log('----'); | 
|---|
|  |  |  | this.getTaskInfo() | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | 
|---|
|  |  |  | stagingHead({ | 
|---|
|  |  |  | isDetail: '1' | 
|---|
|  |  |  | }).then(res => { | 
|---|
|  |  |  | this.taskInfo = res.data | 
|---|
|  |  |  | this.taskInfo = res.data || '' | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | } | 
|---|