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

Loading…
Cancel
Save