From 824b116707321c47058c9151b93c2875f84561b1 Mon Sep 17 00:00:00 2001 From: dengxiongfei Date: Fri, 4 Mar 2022 17:10:10 +0800 Subject: [PATCH] sonar fixed --- .../packingStationItem.vue | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/components/bussiness-components/packingStationItem.vue b/components/bussiness-components/packingStationItem.vue index c5fc09c..bfea2d5 100644 --- a/components/bussiness-components/packingStationItem.vue +++ b/components/bussiness-components/packingStationItem.vue @@ -93,14 +93,14 @@ export default { }, methods: { goDetail() { - // 不能直接使用hook.js文件中的loginGo2,nvue编译生成的store !== this.$store - const token = this.$store.state.qnToken - if (token) { - go2('client-detail', { id: this.info.enterpriseId }, false) - } else { - this.$store.commit('setNextPage', { name: 'client-detail', data:{ id: this.info.enterpriseId }}) - go2('login') - } + // 不能直接使用hook.js文件中的loginGo2,nvue编译生成的store !== this.$store + const token = this.$store.state.qnToken + if (token) { + go2('client-detail', { id: this.info.enterpriseId }, false) + } else { + this.$store.commit('setNextPage', { name: 'client-detail', data: { id: this.info.enterpriseId } }) + go2('login') + } }, transformBusiness(business) { let text = business?.trim() || '未知' @@ -237,8 +237,10 @@ export default { .text { font-size: 24rpx; color: #555555; - lines: 1; - text-overflow: ellipsis; + // text-overflow: ellipsis; + // word-break: none; + // overflow: hidden; + // white-space: nowrap; } } }