How vuex module commit Global state

it seems that the vuex document does not have a commit global state, and the moutaions parameter only the global state, getter has rootstate,. So how do I commit the global state?

Mar.23,2021

can't you introduce the global js into the module?


Yes, in context

let GETLIST = 'GETLIST';
export default{
    namespaced: true,
    mutations: {
        [GETLIST](state, { context, param }){
            console.log(context.rootState)
        }
    },
    actions: {
        OPERATION(context, param){
            context.commit([GETLIST], { context, param })
        }
    }
}
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b397de-2b9e5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b397de-2b9e5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?