INNER CODE UNIT · JavaScript

deleteItem

ChatFAQ/ChatFAQ · admin/utils/index.js:85

export async function deleteItem(id, itemsStore, apiUrl, $t) {
    try {
        itemsStore.loading = true;
        await itemsStore.deleteItem(apiUrl, id, false);
        itemsStore.loading = false;
    } catch (e) {
        itemsStore.loading = false;
        ElNotification({
            title: "Error",
            message: $t("errordeletingitem"),
            type: "error",
            position: "top-right",
        });
        return false;
    }
    ElNotification({
        title: "Success",
        message: $t("successdeletingitem"),

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…