当我在JavaScript中使用Vuex时,它工作得很好,但是在我想将它更改为TypeScript之后,它告诉我Vuex突变中的Property 'commit' does not exist:编辑:import fs from 'fs'
import * as monaco from 'monaco-editor/esm/export
我有一个vuex state状态,看起来像这样: state: {} 在我的组件中: computed: {methods: { this.myObj.someArrayAttribut.splice(i, 1)} remove方法很有效,而且很棒,但是vuex文档明确指出The only way to actually change state in a Vuex store i