mirror of https://github.com/nuxt/nuxt.git
Add $nuxt.error()
This commit is contained in:
parent
87789b8748
commit
509c14a7ac
|
@ -27,6 +27,8 @@ export default {
|
|||
if (typeof window !== 'undefined') {
|
||||
window.$nuxt = this
|
||||
}
|
||||
// Add $nuxt.error()
|
||||
this.error = this.$root.error
|
||||
},
|
||||
<% if (loading) { %>
|
||||
mounted () {
|
||||
|
|
Loading…
Reference in New Issue