code.gitea.io/gitea@v1.21.7/web_src/js/modules/stores.js (about) 1 import {reactive} from 'vue'; 2 3 let diffTreeStoreReactive; 4 export function diffTreeStore() { 5 if (!diffTreeStoreReactive) { 6 diffTreeStoreReactive = reactive(window.config.pageData.diffFileInfo); 7 window.config.pageData.diffFileInfo = diffTreeStoreReactive; 8 } 9 return diffTreeStoreReactive; 10 }