From c0222e9461efa85dd35b5508ba9eef003b0f5b8d Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Fri, 29 Dec 2017 19:37:46 +0330 Subject: [PATCH] fix: rc11 backward compability --- lib/templates/auth.plugin.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/templates/auth.plugin.js b/lib/templates/auth.plugin.js index 2a8933c0b..e6c1b3aae 100644 --- a/lib/templates/auth.plugin.js +++ b/lib/templates/auth.plugin.js @@ -8,10 +8,8 @@ export default async function (context, inject) { }) // Backward compability for Nuxt <= RC.11 - if (!context.store.app) { - context.store.app = { - context - } + if (!context.store.app.context) { + context.store.app.context = context } // Fetch initial state