Track dashboard render runtime files

This commit is contained in:
2026-06-10 13:24:23 +08:00
parent 53e924379a
commit bf03a72669
39 changed files with 7887 additions and 0 deletions
@@ -0,0 +1,23 @@
import { ref } from 'vue';
const globalParams = ref<Record<string, any>>({});
const globalParamsVersion = ref(0);
function updateGlobalParam(key: string, value: any) {
globalParams.value = { ...globalParams.value, [key]: value };
globalParamsVersion.value++;
}
function clearGlobalParams() {
globalParams.value = {};
globalParamsVersion.value++;
}
export function useDashboardRuntime() {
return {
clearGlobalParams,
globalParams,
globalParamsVersion,
updateGlobalParam,
};
}