mo-bai 4 years ago
parent
commit
d12f89fb36
1 changed files with 11 additions and 2 deletions
  1. 13
      pages/enquiry-list/index.vue

13
pages/enquiry-list/index.vue

@ -62,7 +62,7 @@
</template>
<script>
import { go2, back } from '@/utils/hook.js'
import { go2, back, loginGo2 } from '@/utils/hook.js'
import uGap from '@/components/u-gap/u-gap.vue'
import { getEnquiryOrder, createByEnquiry } from '@/apis/enquiryListApi.js'
export default {
@ -110,8 +110,17 @@ export default {
return name
}
},
computed: {
hasLogin() {
return this.$store.state.qnToken != ''
}
},
onShow() {
this.downCallback()
if (this.hasLogin()) {
this.downCallback()
} else {
loginGo2('enquiry-list')
}
},
methods: {
go2,

Loading…
Cancel
Save