mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Get config from prop instead of definition
This commit is contained in:
parent
ab11d74bfd
commit
3ac2653443
2 changed files with 9 additions and 1 deletions
|
|
@ -192,6 +192,12 @@ export default {
|
|||
LinkButton,
|
||||
AllUpdatesSubscribe
|
||||
},
|
||||
props: {
|
||||
config: {
|
||||
type: Object,
|
||||
default: null
|
||||
}
|
||||
},
|
||||
data: function () {
|
||||
return {
|
||||
query: '',
|
||||
|
|
@ -295,7 +301,7 @@ export default {
|
|||
// Bring in code
|
||||
const { default: AppFilesScanner } = await import('~/helpers/app-files-scanner.js')
|
||||
|
||||
const testResultStore = isNuxt( this ) ? this.$config.testResultStore : global.$config.testResultStore
|
||||
const testResultStore = this.config ? this.config.testResultStore : this.$config.testResultStore
|
||||
|
||||
// Initialize instance
|
||||
this.scanner = new AppFilesScanner({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue