SL
Size: a a a
SL
SL
Vue.use({
// forces plugin to install on every request
install: VueProvideResponsive.install
}, config);
SL
const plugin = { install: VueProvideResponsive.install };
nuxt.addPlugin(plugin);
nuxt.hook('renderer:done', (nuxt) => {
delete Vue._installedPlugins[plugin]
});
DP
DP
SL
SL
DP
SL
A
DP
export default function() {
this.nuxt.hook('render:route', renderer => {
Vue._installedPlugins = Vue._installedPlugins.filter(p => p.key !== 'responsive')
})
}
SL
export default function() {
this.nuxt.hook('render:route', renderer => {
Vue._installedPlugins = Vue._installedPlugins.filter(p => p.key !== 'responsive')
})
}
DP
const pluginIdx = Vue._installedPlugins.findIndex(p => p.key === 'responsive')
Vue._installedPlugins.splice(pluginIdx, 1)
SL
DP
ᴇ
export default ({ app }) => {
const cookieRes = app.$cookies.get('cookie-name')
}
в документации написано что присвоение к переменной на стороне сервера делается так, но как сделать присвоение данных к переменной в стейте не понятноJG
С
SL
V💊