From fec5bd1c689847dbc28b0af73045a1d6122ca40c Mon Sep 17 00:00:00 2001 From: 1isten Date: Wed, 21 Oct 2020 14:54:13 +0800 Subject: [PATCH] feat: add $nuxt.context --- lib/templates/App.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/templates/App.js b/lib/templates/App.js index 8659279..d3f3e84 100644 --- a/lib/templates/App.js +++ b/lib/templates/App.js @@ -42,6 +42,8 @@ export default { } // Add $nuxt.error() this.error = this.nuxt.error + // Add $nuxt.context + this.context = this.$options.context }, methods: { setLayout (layout) {