Revert "fix(vue-app): use mixin to provide this.$nuxt (#8068)"

This reverts commit 8abdc177be.
This commit is contained in:
Clark Du 2020-09-30 12:08:57 +01:00
parent afc2e2af8e
commit 61e93d01f9

View File

@ -24,14 +24,6 @@ if (!Vue.__nuxt__fetch__mixin__) {
}
<% } %>
Vue.mixin({
beforeCreate() {
if(Vue.prototype.<%= globals.nuxt %>) {
this.<%= globals.nuxt %> = Vue.prototype.<%= globals.nuxt %>
}
}
})
// Component: <NuxtLink>
Vue.component(NuxtLink.name, NuxtLink)
<% if (features.componentAliases) { %>Vue.component('NLink', NuxtLink)<% } %>