mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-12 19:02:27 +03:00
0ab76ee16b
refactor: server injectors feat: add head, bodyPrepend, bodyAppend injectors refactor: create browserbuild through rollup replace (not separate entry)
14 lines
257 B
JavaScript
14 lines
257 B
JavaScript
export function pause (vm, refresh = true) {
|
|
vm.$root._vueMeta.paused = true
|
|
|
|
return () => resume(refresh)
|
|
}
|
|
|
|
export function resume (vm, refresh = true) {
|
|
vm.$root._vueMeta.paused = false
|
|
|
|
if (refresh) {
|
|
return vm.$root.$meta().refresh()
|
|
}
|
|
}
|