forked from gitea/gitea
1
0
Fork 0
gitea/web_src/js/modules/stores.js

11 lines
302 B
JavaScript

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