mirror of
https://github.com/ccmjga/zhilu-admin
synced 2026-03-29 07:03:43 +08:00
fix undefined
This commit is contained in:
@@ -289,22 +289,30 @@ onMounted(async () => {
|
||||
initFlowbite();
|
||||
const $upsertModalElement: HTMLElement | null =
|
||||
document.querySelector("#user-upsert-modal");
|
||||
userUpsertModal.value = new Modal($upsertModalElement, {});
|
||||
if ($upsertModalElement) {
|
||||
userUpsertModal.value = new Modal($upsertModalElement, {});
|
||||
}
|
||||
const $userDeleteModalElement: HTMLElement | null =
|
||||
document.querySelector("#user-delete-modal");
|
||||
userDeleteModal.value = new Modal(
|
||||
$userDeleteModalElement,
|
||||
{},
|
||||
{
|
||||
id: "user-delete-modal",
|
||||
},
|
||||
);
|
||||
if ($userDeleteModalElement) {
|
||||
userDeleteModal.value = new Modal(
|
||||
$userDeleteModalElement,
|
||||
{},
|
||||
{
|
||||
id: "user-delete-modal",
|
||||
},
|
||||
);
|
||||
}
|
||||
const $departmentDeleteModalElement: HTMLElement | null =
|
||||
document.querySelector("#department-delete-modal");
|
||||
departmentDeleteModal.value = new Modal($departmentDeleteModalElement, {});
|
||||
if ($departmentDeleteModalElement) {
|
||||
departmentDeleteModal.value = new Modal($departmentDeleteModalElement, {});
|
||||
}
|
||||
const $departmentUpsertModalElement: HTMLElement | null =
|
||||
document.querySelector("#department-upsert-modal");
|
||||
departmentUpsertModal.value = new Modal($departmentUpsertModalElement, {});
|
||||
if ($departmentUpsertModalElement) {
|
||||
departmentUpsertModal.value = new Modal($departmentUpsertModalElement, {});
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user