linwenxin 11 ヶ月 前
コミット
51827c8b02
1 ファイル変更4 行追加3 行削除
  1. 4 3
      src/views/commercialEngineering/components/examine.vue

+ 4 - 3
src/views/commercialEngineering/components/examine.vue

@@ -180,10 +180,11 @@ export default {
   computed: {
     ...mapGetters(['isTradeExaminer', 'isCustomer']),
     shenheshangchuan() {
-      var { isService, isTradeExaminer } = localStorage.getItem('supply_user') || {}
-      return this.isTradeExaminer && isTradeExaminer
+      var data = localStorage.getItem('supply_user')
+      console.log(data, this.isTradeExaminer, this.$route.name)
+      return this.isTradeExaminer && data?.isTradeExaminer
         ? true
-        : isService && this.$route.name === 'crossDistrictkList'
+        : data?.isService && this.$route.name === 'crossDistrictkList'
         ? true
         : false
     }