mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Move isNuxt to helper
This commit is contained in:
parent
927791eb73
commit
9a3d255764
2 changed files with 9 additions and 5 deletions
|
|
@ -59,11 +59,11 @@
|
|||
|
||||
<script>
|
||||
|
||||
import has from 'just-has'
|
||||
import axios from 'axios'
|
||||
|
||||
import { v4 as uuid } from 'uuid'
|
||||
|
||||
import { isNuxt } from '~/helpers/environment.js'
|
||||
|
||||
export default {
|
||||
props: {
|
||||
// appName: {
|
||||
|
|
@ -132,9 +132,7 @@ export default {
|
|||
|
||||
// const pagePath = $nuxt.$route.path
|
||||
|
||||
const isNuxt = has( this, [ '$nuxt' ])
|
||||
|
||||
const allUpdateSubscribe = isNuxt ? this.$config.allUpdateSubscribe : global.$config.allUpdateSubscribe
|
||||
const allUpdateSubscribe = isNuxt( this ) ? this.$config.allUpdateSubscribe : global.$config.allUpdateSubscribe
|
||||
|
||||
console.log('allUpdateSubscribe', allUpdateSubscribe)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue