質問編集履歴
2
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
お世話になります。vuex初心者ですが、開発してる中でミューテーションエラーが解決できず質問させていただきました。
|
2
2
|
システム構成は、nuxt + vuex-module-decoratorsになります。
|
3
|
+
|
4
|
+
nuxt側からは、Actionを呼んで、ActionからMutationを呼んでるためエラーにならない認識だったのですがエラーになります。
|
3
5
|
|
4
6
|
@nuxt/cli v2.15.8
|
5
7
|
vuex-module-decorators:2.0.0
|
1
コード修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -25,7 +25,7 @@
|
|
25
25
|
|
26
26
|
}
|
27
27
|
@Module({ dynamic: true, store, name: 'Test', namespaced: true })
|
28
|
-
class Test extends VuexModule implements
|
28
|
+
class Test extends VuexModule implements TestState {
|
29
29
|
friends: Friend[] = []
|
30
30
|
|
31
31
|
@Mutation
|