Property '$q' does not exist on type
-
how to access this.$q under
setup()
<script lang="ts"> // import { LoadingBar } from 'quasar' import { defineComponent, onMounted } from '@vue/composition-api' export default defineComponent({ name: 'AuthLayout', setup () { onMounted(() => { this.$q.loadingBar.stop() console.log('mounted!') }) return { } } }) </script>
-
@diadal pass the context argument(2nd)
setup(props, context)
…context.root.$q
. -
-
This post is deleted!