vuex.esm.js?2f62:376 [vuex] unknown mutation type:
时间: 2024-05-24 21:12:10 浏览: 172
This error message indicates that you are attempting to commit a mutation to the Vuex store that has not been defined.
To resolve this error, first check that you have defined the mutation correctly. Make sure that the mutation type you are attempting to commit to the store matches the name of the mutation in your Vuex store module.
If the mutation is defined correctly, then check that you are importing the mutation correctly in your component. Make sure that you are importing the mutation from the correct Vuex store module and that the import statement is spelled correctly.
If you are still having trouble resolving this error, try reviewing the Vuex documentation or seeking assistance from the Vuex community.
阅读全文