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