mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-24 01:20:34 +03:00
fix: allow _hasMetaInfo to be configurable
This commit is contained in:
@@ -14,6 +14,7 @@ export default function createMixin(Vue, options) {
|
|||||||
return {
|
return {
|
||||||
beforeCreate() {
|
beforeCreate() {
|
||||||
Object.defineProperty(this, '_hasMetaInfo', {
|
Object.defineProperty(this, '_hasMetaInfo', {
|
||||||
|
configurable: true,
|
||||||
get() {
|
get() {
|
||||||
// Show deprecation warning once when devtools enabled
|
// Show deprecation warning once when devtools enabled
|
||||||
if (Vue.config.devtools && !this.$root._vueMeta.hasMetaInfoDeprecationWarningShown) {
|
if (Vue.config.devtools && !this.$root._vueMeta.hasMetaInfoDeprecationWarningShown) {
|
||||||
|
|||||||
Reference in New Issue
Block a user