summaryrefslogtreecommitdiffstats
path: root/web_src/js/modules/stores.js
blob: 1a0ed7eda14fca3cd9f3ab295e8b253cd3012215 (plain)
1
2
3
4
5
6
7
8
9
10
import {reactive} from 'vue';

let diffTreeStoreReactive;
export function diffTreeStore() {
  if (!diffTreeStoreReactive) {
    diffTreeStoreReactive = reactive(window.config.pageData.diffFileInfo);
    window.config.pageData.diffFileInfo = diffTreeStoreReactive;
  }
  return diffTreeStoreReactive;
}