Browse Source

用图床链接替换了消息卡片的背景

xicheng79 3 years ago
parent
commit
8b8dbb4b5e
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/components/card.vue

+ 3 - 3
src/components/card.vue

@@ -55,7 +55,7 @@ export default {
     // 图片链接
     // 图片链接
     img: {
     img: {
       type: String,
       type: String,
-      default: '../../static/img/card-img.png'
+      default: 'https://i.loli.net/2021/09/26/SAI1gWCvB8DMsTi.png'
     }
     }
   },
   },
   name: 'phoneCard',
   name: 'phoneCard',
@@ -63,7 +63,7 @@ export default {
     return {
     return {
       button: '',
       button: '',
       flag: '',
       flag: '',
-      imgArr: ['../../static/img/card-img.png'],
+      imgArr: ['https://i.loli.net/2021/09/26/SAI1gWCvB8DMsTi.png'],
       showMore: false,
       showMore: false,
       screenSize: window.screen.width
       screenSize: window.screen.width
     }
     }
@@ -172,7 +172,7 @@ export default {
       if (val !== null && val !== '') {
       if (val !== null && val !== '') {
         this.imgArr = [val]
         this.imgArr = [val]
       } else {
       } else {
-        this.imgArr = ['../../static/img/card-img.png']
+        this.imgArr = ['https://i.loli.net/2021/09/26/SAI1gWCvB8DMsTi.png']
       }
       }
     }
     }
   },
   },