(component): 回退

This commit is contained in:
就眠儀式 2022-10-06 00:11:32 +08:00
parent 7932241c95
commit 70ef7649ac
2 changed files with 4 additions and 6 deletions

View File

@ -320,7 +320,7 @@ watch(
beforeCloseSaveData();
}
},
{ deep: true }
{ deep: true, immediate: true }
);
/**
@ -338,7 +338,7 @@ watch(
} else {
props.end();
}
}
}, { immediate: true }
);
/**
@ -447,8 +447,6 @@ const closeHandle = () => {
emit("close");
emit("update:modelValue", false);
props.destroy();
//Notify
if (type === 6) {
//@ts-ignore
removeNotifiyFromQueen(props.id);

View File

@ -75,12 +75,12 @@ const layer = {
_context: <AppContext | null>null,
// 页面
open: (option: any, callback: Function) => {
open: (option: any, callback?: Function) => {
let defaultOption = {};
return layer.create(option, defaultOption, callback);
},
// 抽屉
drawer: (option: any, callback: Function) => {
drawer: (option: any, callback?: Function) => {
let defaultOption = {
type: "drawer",
};