|
@@ -162,6 +162,7 @@ import {
|
|
|
imGroupNoticeRemove,
|
|
|
} from "../../../../api";
|
|
|
import Slider from "../../../components/sliderTUI/index.vue";
|
|
|
+import TUIMessage from "../../../components/messageTUI/index";
|
|
|
const ManageNotification = defineComponent({
|
|
|
components: {
|
|
|
Slider,
|
|
@@ -266,8 +267,13 @@ const ManageNotification = defineComponent({
|
|
|
data.id = "";
|
|
|
ctx.emit("changeStatus", "add");
|
|
|
}
|
|
|
- } catch (e) {
|
|
|
+ } catch(e) {
|
|
|
//
|
|
|
+ TUIMessage({
|
|
|
+ message: e.message,
|
|
|
+ isH5: false,
|
|
|
+ type: "error",
|
|
|
+ });
|
|
|
}
|
|
|
popoverRef.value[index]?.setShow(false);
|
|
|
};
|
|
@@ -300,8 +306,13 @@ const ManageNotification = defineComponent({
|
|
|
data.page = 1;
|
|
|
data.groupList = [];
|
|
|
getNotification();
|
|
|
- } catch {
|
|
|
+ } catch(e) {
|
|
|
//
|
|
|
+ TUIMessage({
|
|
|
+ message: e.message,
|
|
|
+ isH5: false,
|
|
|
+ type: "error",
|
|
|
+ });
|
|
|
}
|
|
|
};
|
|
|
|