📝(layer): 修复 close 与 closeAll 案例
This commit is contained in:
@@ -31,7 +31,7 @@ const cleanInstance = () => {
|
||||
const isExist = (id: any) => {
|
||||
let b = false;
|
||||
layerInstance.forEach((item: any, index: number) => {
|
||||
if (item.modalContainer.id === id) {
|
||||
if (item.modalContainer.id == id) {
|
||||
b = true;
|
||||
}
|
||||
});
|
||||
|
||||
@@ -120,7 +120,7 @@ export function calculateType(modalType: number | string) {
|
||||
return 3;
|
||||
} else if (modalType === "drawer" || modalType == 4) {
|
||||
return 4;
|
||||
} else if (modalType === "photos") {
|
||||
} else if (modalType === "photos") {
|
||||
return 5;
|
||||
}
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user