diff options
Diffstat (limited to 'web_src/js/modules/stores.js')
-rw-r--r-- | web_src/js/modules/stores.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/web_src/js/modules/stores.js b/web_src/js/modules/stores.js new file mode 100644 index 00000000..1a0ed7ed --- /dev/null +++ b/web_src/js/modules/stores.js @@ -0,0 +1,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; +} |