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

官放文档例子中的小问题 #300

Open
notomorow opened this issue Jul 10, 2020 · 1 comment
Open

官放文档例子中的小问题 #300

notomorow opened this issue Jul 10, 2020 · 1 comment

Comments

@notomorow
Copy link

notomorow commented Jul 10, 2020

'https://ssr.vuejs.org/zh/guide/#%E5%AE%8C%E6%95%B4%E5%AE%9E%E4%BE%8B%E4%BB%A3%E7%A0%81' 这里代码中写的是metas:

const context = {
    title: 'vue ssr',
    metas: `
        <meta name="keyword" content="vue,ssr">
        <meta name="description" content="vue srr demo">
    `,
};

但是 index.template.html里引用的是meta

<html>
  <head>
    <title>{{ title }}</title>
    {{{ meta }}}
  </head>
  <body>
    <!--vue-ssr-outlet-->
  </body>
</html>
@gaofeng222
Copy link

const context = {
title: 'vue ssr',
meta: <meta name="keyword" content="vue,ssr"> <meta name="description" content="vue srr demo">,
};

改成这样就可以执行了,不报错了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants