소스 검색

fix:数据缺失标讯详情页展示

yangfeng 11 달 전
부모
커밋
3d5f5b0c2a
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      apps/bigmember_pc/src/views/article-content/composables/useContentStore.js
  2. 1 0
      apps/mobile/src/api/modules/article.js

+ 1 - 1
apps/bigmember_pc/src/views/article-content/composables/useContentStore.js

@@ -77,7 +77,7 @@ async function useContentStore() {
         return res.data
       } else {
         ContentIsError.value = true
-        if(res.error_msg.includes('未查到当前招标信息') !== -1) {
+        if(res.error_msg.includes('未查到当前招标信息')) {
           ContentErrorText.value = '由于相关部门要求,该信息已下架,敬请原谅'
         } else {
           ContentErrorText.value = '该页面信息不存在'

+ 1 - 0
apps/mobile/src/api/modules/article.js

@@ -6,6 +6,7 @@ export function getArticlePreAgentInfo(params) {
   return request({
     url: '/publicapply/detail/preAgent',
     method: 'get',
+    noToast: true,
     params
   })
 }