lex-xin před 9 měsíci
rodič
revize
70408c3a06

+ 13 - 2
src/TUIKit/TUIComponents/container/TUIChat/manage-components/manage-notification-detail.vue

@@ -147,6 +147,7 @@ import {
   imGroupNoticeRemove,
 } from "../../../../api";
 import Slider from "../../../components/sliderTUI/index.vue";
+import TUIMessage from "../../../components/messageTUI/index";
 const ManageNotification = defineComponent({
   components: {
     Slider,
@@ -242,8 +243,13 @@ const ManageNotification = defineComponent({
           data.id = "";
           ctx.emit("changeStatus", "addDetail");
         }
-      } catch (e) {
+      } catch(e) {
         //
+        TUIMessage({
+          message: e.message,
+          isH5: false,
+          type: "error",
+        });
       }
       popoverRef.value?.setShow(false);
     };
@@ -276,8 +282,13 @@ const ManageNotification = defineComponent({
         data.page = 1;
         data.groupDetail = [];
         getNotification();
-      } catch {
+      } catch(e) {
         //
+        TUIMessage({
+          message: e.message,
+          isH5: false,
+          type: "error",
+        });
       }
     };
 

+ 13 - 2
src/TUIKit/TUIComponents/container/TUIChat/manage-components/manage-notification.vue

@@ -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",
+        });
       }
     };
 

+ 2 - 0
src/TUIKit/TUIComponents/container/TUIChat/manage-components/manage.vue

@@ -1008,6 +1008,8 @@ const manage = defineComponent({
           } catch {
             //
           }
+        } else {
+          data.currentTab = ''
         }
       }
     );