Do you want to work on this issue?
You can request for a bounty in order to promote it!
No effect after setting metaInfo #596
geekplux posted onGitHub
<!-- Please don't delete this template or we'll close your issue -->
<!-- Before creating an issue please make sure you are using the latest version of Saber. -->
<!-- Issues which contain questions or support requests will be closed. -->
<!-- Please ask questions via following several ways. -->
<!-- https://chat.saber.land/ -->
<!-- https://stackoverflow.com/questions/ask?tags=saberjs -->
Bug report
Steps to reproduce
<!-- If you are reporting a bug that can ONLY be reproduced on your repository, PLEASE provide this repo link. That takes guessing work out of the way and saves us time. -->
<!-- You can also use this CodeSandbox starter https://bit.ly/2IlcpNF -->
setting metaInfo
in head
or setHead()
:
setHead(function() {
return {
metaInfo: {
script: [
{
innerHTML: 'console.log("I am in body");',
type: 'text/javascript',
body: true
}
]
}
}
})
What is expected?
a <script>
tag would be inserted before </body>
What is actually happening?
Other relevant information
- Result of running
saber -v
: 0.11.5 - Browser version (optional):
- Is Saber a global or local install? local
- Which package manager did you use for the install? yarn
- Does this issue occur when all plugins are disabled? no
may just solve it by upgrading vue-meta
to v2.1+ (now 2.0.4 https://github.com/saberland/saber/blob/master/packages/saber/package.json#L66)?