2020-02-10 01:05:28 +00:00
|
|
|
import Vue from 'vue';
|
|
|
|
|
|
|
|
function setCache(state, { target, releases }) {
|
2020-05-14 02:26:05 +00:00
|
|
|
Vue.set(state.cache, target, releases);
|
2020-02-10 01:05:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function deleteCache(state, target) {
|
2020-05-14 02:26:05 +00:00
|
|
|
Vue.delete(state.cache, target);
|
2020-02-10 01:05:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export default {
|
2020-05-14 02:26:05 +00:00
|
|
|
setCache,
|
|
|
|
deleteCache,
|
2020-02-10 01:05:28 +00:00
|
|
|
};
|