2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-11 20:02:25 +03:00

fix: allow _hasMetaInfo to be configurable

This commit is contained in:
pimlie
2019-06-09 20:30:00 +02:00
parent 094fd9d14c
commit 8b7b991e63
+1
View File
@@ -14,6 +14,7 @@ export default function createMixin(Vue, options) {
return {
beforeCreate() {
Object.defineProperty(this, '_hasMetaInfo', {
configurable: true,
get() {
// Show deprecation warning once when devtools enabled
if (Vue.config.devtools && !this.$root._vueMeta.hasMetaInfoDeprecationWarningShown) {