mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-18 07:42:01 +08:00
refactor: useBeforeCloseDiff逻辑更新
This commit is contained in:
@@ -47,6 +47,11 @@ export function useBeforeCloseDiff(props: BeforeCloseDiffProps) {
|
||||
isInitialized.value = true;
|
||||
}
|
||||
|
||||
function resetInitialized() {
|
||||
initialized.value = '';
|
||||
isInitialized.value = false;
|
||||
}
|
||||
|
||||
function setSubmitted() {
|
||||
isSubmitted.value = true;
|
||||
}
|
||||
@@ -101,6 +106,7 @@ export function useBeforeCloseDiff(props: BeforeCloseDiffProps) {
|
||||
onBeforeClose,
|
||||
updateInitialized,
|
||||
setSubmitted,
|
||||
resetInitialized,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user