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