Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
554 views
in Technique[技术] by (71.8m points)

vue.js - 如何实施seo来验证项目?(How can I implement seo to vuetify project?)

I had try some way

(我尝试了一些方法)

  1. https://github.com/nuxt/vue-meta

    (https://github.com/nuxt/vue-meta)

  2. https://github.com/troxler/vue-headful

    (https://github.com/troxler/vue-headful)

I had install it and try in my project of vuetify

(我已经安装了它并尝试在我的vuetify项目中)

I try to click right use mouse on my website and select View Page Source , I see the title, description, keywords don't change.

(我尝试在我的网站上单击鼠标右键,然后选择“ View Page Source ,我看到标题,说明和关键字没有变化。)

It still uses the title, keyword and description from public/index.html .

(它仍然使用public/index.html的标题,关键字和描述。)

I look doubtful this way is correct

(我怀疑这种方式是正确的)

Is this method really useful for SEO?

(这种方法对SEO真的有用吗?)

  ask by positive thinking translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Using vue-headful must work.

(必须使用vue-headful。)

This is an example:

(这是一个例子:)

<template>
  <v-app>
    <vue-headful :keywords="this.metaKeyword" :title="this.metaTitle"/>
  </v-app>
</template>
<script>
  import vueHeadful from 'vue-headful';
  export default {
    data () {
      return {
        metaKeyword: ["keyword1", "keyword2", "keyword3"],
        metaTitle: ["This is my title"]
      }
    },
    components: {
      vueHeadful
    }
  }
</script>

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...