2023-04-11 18:44:26 -06:00
|
|
|
import {reactive} from 'vue';
|
2024-08-10 03:46:48 -06:00
|
|
|
import type {Reactive} from 'vue';
|
2023-04-11 18:44:26 -06:00
|
|
|
|
2024-08-10 03:46:48 -06:00
|
|
|
let diffTreeStoreReactive: Reactive<Record<string, any>>;
|
2023-05-30 04:53:15 -06:00
|
|
|
export function diffTreeStore() {
|
|
|
|
if (!diffTreeStoreReactive) {
|
|
|
|
diffTreeStoreReactive = reactive(window.config.pageData.diffFileInfo);
|
|
|
|
window.config.pageData.diffFileInfo = diffTreeStoreReactive;
|
|
|
|
}
|
|
|
|
return diffTreeStoreReactive;
|
|
|
|
}
|