Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update page-meta.md #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions docs/component/page-meta.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,29 +55,29 @@ vue3 下还可以在`page-meta`内使用浏览器原生 head 标签,**此用
page-style="color: green"
root-font-size="16px"
>
<head> // 仅vue3 ssr支持,此节点下的元素会被拷贝到h5页面的head标签下,可以利用此特性进行seo优化
<meta name="keyword" :content="title" />
</head>
<head>
// 仅vue3
ssr支持,此节点下的元素会被拷贝到h5页面的head标签下,可以利用此特性进行seo优化
<meta name="keyword" :content="title" />
</head>
</page-meta>
<view class="content">
</view>
<view class="content"> </view>
</template>

<script>
export default {
data() {
return {
keyword: '',
}
keyword: "",
};
},
serverPrefetch(){ // 仅vue3版本支持
this.keyword = "ServerKeyword"
},
onLoad() {
serverPrefetch() {
// 仅vue3版本支持
this.keyword = "ServerKeyword";
},
methods: {
}
}
onLoad() {},
methods: {},
};
</script>
```

Expand Down