Browse Source

card背景图更换为github源

napier 3 years ago
parent
commit
ea1b11590d
1 changed files with 5 additions and 3 deletions
  1. 5 3
      src/components/card.vue

+ 5 - 3
src/components/card.vue

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