mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-11-03 16:30:37 +00:00
21 lines
402 B
JavaScript
21 lines
402 B
JavaScript
const keepAliveNamesModule = {
|
||
namespaced: true,
|
||
state: {
|
||
keepAliveNames: [],
|
||
},
|
||
mutations: {
|
||
// 设置路由缓存(name字段)
|
||
getCacheKeepAlive(state, data) {
|
||
state.keepAliveNames = data;
|
||
},
|
||
},
|
||
actions: {
|
||
// 设置路由缓存(name字段)
|
||
async setCacheKeepAlive({ commit }, data) {
|
||
commit('getCacheKeepAlive', data);
|
||
},
|
||
},
|
||
};
|
||
|
||
export default keepAliveNamesModule;
|