Эх сурвалжийг харах

fix: 引入静态资源方式调整

Signed-off-by: tangshizhe <48740614+tangshizhe@users.noreply.github.com>
tangshizhe 1 жил өмнө
parent
commit
f3305e3459

+ 4 - 3
apps/bigmember_pc/src/components/forecast/ForeCast.vue

@@ -579,7 +579,7 @@ export default {
       isFollow: '1',
       potenCode: 0,
       tips: '', // 空状态提示
-      tipimages: 'jy-cry.png',
+      tipimages: 'empty/jy-cry.png',
       dialog: {
         group: false
       },
@@ -1073,14 +1073,15 @@ export default {
         this.myDataObj.initTotal === 0
       ) {
         this.tips = '暂无企业情报信息,前往企业搜索关注企业'
-        this.tipimages = getAssetsFile('jy-back.png')
+        this.tipimages = getAssetsFile('empty/jy-back.png')
+        console.info(this.tipimages)
       } else if (
         this.myDataObj &&
         this.myDataObj.list.length === 0 &&
         this.myDataObj.initTotal !== 0
       ) {
         this.tips = '暂无匹配数据'
-        this.tipimages = getAssetsFile('jy-back.png')
+        this.tipimages = getAssetsFile('empty/jy-back.png')
       }
     },
     changeTime(data) {

+ 2 - 2
apps/bigmember_pc/src/components/medical/FollowList.vue

@@ -370,14 +370,14 @@ export default {
         this.myDataObj.initTotal === 0
       ) {
         this.tips = '暂未认领任何经销商'
-        this.tipimages = getAssetsFile('jy-back.png')
+        this.tipimages = getAssetsFile('empty/jy-back.png')
       } else if (
         this.myDataObj &&
         this.myDataObj.list.length === 0 &&
         this.myDataObj.initTotal !== 0
       ) {
         this.tips = '暂无匹配数据'
-        this.tipimages = getAssetsFile('jy-back.png')
+        this.tipimages = getAssetsFile('empty/jy-back.png')
       }
     }
   }

+ 2 - 1
apps/jy-pc/src/components/empty/Empty.vue

@@ -12,6 +12,7 @@
 
 <script>
 import { Image } from 'element-ui'
+import { getAssetsFile } from '@/utils'
 
 function getImageUrl(filePath) {
   return new URL(`./assets/${filePath}`, import.meta.url).href
@@ -31,7 +32,7 @@ export default {
       type: String,
       default() {
         // return require('@/assets/images/empty.png')
-        return getImageUrl('image/public/jy-back.png')
+        return getAssetsFile('empty/jy-back.png')
       }
     }
   }