mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Fix $nuxt undefined
This commit is contained in:
parent
ad913ae51d
commit
bd17f443e5
1 changed files with 4 additions and 1 deletions
|
|
@ -162,6 +162,9 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
// https://anguscroll.com/just/just-has
|
||||
import has from 'just-has'
|
||||
|
||||
import LinkButton from '~/components/link-button.vue'
|
||||
|
||||
export default {
|
||||
|
|
@ -206,7 +209,7 @@ export default {
|
|||
computed: {
|
||||
currentPath () {
|
||||
// If we have a nuxt context, use that.
|
||||
if (this.$nuxt) {
|
||||
if ( has( this, [ '$nuxt' ]) ) {
|
||||
return this.$nuxt.$route.path
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue