A doubt in vuex

API of Vuex

mutations: Type: {[type: string]: Function}
actions: Type: {[type: string]: Function}
getters: Type: {[key: string]: Function}

Why does getters use key and the other two use type?

Mar.22,2021

1. getters you can understand that key
2. actions and mutations type are actually used to distinguish different action. Type here is actiontype


because they represent different things. Key in getter refers to key, in store of vuex, while type in action and mutation represent different methods under action and mutation, respectively. You can understand it as


of course of vuex. Please enter the code to specify

.
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-1b355fc-2bf93.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-1b355fc-2bf93.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?