Skip to content
This repository was archived by the owner on Jul 10, 2019. It is now read-only.

Commit 6dcd9f4

Browse files
committed
refactor: use context method arguments
1 parent 6c4acdb commit 6dcd9f4

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/pages/example/use-plugin.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ import { Component, Vue } from 'nuxt-property-decorator'
1313
export default class UsePlugin extends Vue {
1414
public c: string = 'a'
1515
16+
public asyncData(context) {
17+
console.log(context.app.$C)
18+
}
19+
1620
public mounted() {
21+
console.log(this.$C)
1722
this.c = this.$C
1823
}
1924

src/routed-pages/routing-validate.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default class extends Vue {
2121
}
2222
}
2323
24-
public validate({ params, query, store }) {
24+
public validate({ params, query, store, app }) {
2525
if (params.condition === 'true') {
2626
return true // params バリデーションを通過したとき
2727
}

0 commit comments

Comments
 (0)