wenliming 3 anos atrás
pai
commit
0b4c821ba6
2 arquivos alterados com 597 adições e 24 exclusões
  1. 26 7
      components/Tutorial.vue
  2. 571 17
      yarn.lock

+ 26 - 7
components/Tutorial.vue

@@ -112,7 +112,9 @@ export default {
   data() {
     return {
       title: 'Hello World!',
-      name:this.$route.query.name
+      name:this.$route.query.name,
+      image:this.$route.query.image,
+			twitterTitle:this.$route.query.title,
     }
   },
   head() {
@@ -120,16 +122,33 @@ export default {
       title: this.title,
       meta: [
         {
-          hid: 'description',
-          name: this.name,
-          content: 'My custom description'
-        }
+          name: 'twitter:card',
+          content: 'summary_large_image'
+        },
+				{
+					name: 'twitter:url',
+					content: 'https://piaoquantv.yishihui.com'
+				},
+				{
+					name: 'twitter:title',
+					content: this.twitterTitle
+				},
+				{
+					name: 'twitter:image',
+					content: 'https://i.ytimg.com/vi/7LpAYFsI6yE/'+ this.image +'.jpg'
+				},
+				{
+					name: 'twitter:image:width',
+					content: '1280'
+				},
+        {
+					name: 'twitter:image:height',
+					content: '720'
+				},
       ]
     }
   },
   created(){
-    
-
     console.log(this.$route.query.name)
   }
 }

Diferenças do arquivo suprimidas por serem muito extensas
+ 571 - 17
yarn.lock


Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff