We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
createStore代码: import getters from './getters' import modules from './modules' import { createStore } from 'vuex' const store = createStore({ getters, modules, })
export function setupStore(app) { app.use(store); } 被报找不到mutation type的模块代码 import * as R from 'ramda' import http from '@/utils/http'
export default { namespaced: true, state: {}, mutations: { SET_DATA (state, { name, data }) { state[name] = data }, DEL_DATA (state, { name }) { delete state[name] }, }, actions: { async get ({ commit, rootGetters }, { category, onFinally }) {
},
}, }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
createStore代码:
import getters from './getters'
import modules from './modules'
import { createStore } from 'vuex'
const store = createStore({
getters,
modules,
})
export function setupStore(app) {
app.use(store);
}
被报找不到mutation type的模块代码
import * as R from 'ramda'
import http from '@/utils/http'
export default {
namespaced: true,
state: {},
mutations: {
SET_DATA (state, { name, data }) {
state[name] = data
},
DEL_DATA (state, { name }) {
delete state[name]
},
},
actions: {
async get ({ commit, rootGetters }, { category, onFinally }) {
},
}
The text was updated successfully, but these errors were encountered: