Jelajahi Sumber

修改-群聊

rkljw 1 hari lalu
induk
melakukan
3edead0303
2 mengubah file dengan 12 tambahan dan 1 penghapusan
  1. 2 0
      src/layout/components/Chat/ChatPanel.vue
  2. 10 1
      src/main.js

+ 2 - 0
src/layout/components/Chat/ChatPanel.vue

@@ -2802,6 +2802,7 @@
         console.log(this.form);
         this.$store.dispatch('chat/applyFriend',this.form).then(res=> {
           if(res.code==200){
+            this.showfrindDialog = false;
             this.$message.success('成功添加好友!')
             this.friendWindowStatus = false;
             //重新加载用户列表
@@ -2852,6 +2853,7 @@
         //this.editFriendId
         this.$store.dispatch('chat/updateFriend',data).then(res=> {
           if(res.code==200){
+            this.showfrindDialog = false;
             this.$message.success('修改备注名成功!')
             this.pagestatus = 1;
             this.editWindowStatus = false;

+ 10 - 1
src/main.js

@@ -32,7 +32,16 @@ import * as filters from './filters' // global filters
 //   const { mockXHR } = require('../mock')
 //   mockXHR()
 // }
-
+Vue.prototype.$fixModalZIndex = function() {
+  this.$nextTick(() => {
+    const modals = document.querySelectorAll('.v-modal');
+    modals.forEach(modal => {
+      if (parseInt(modal.style.zIndex, 10) > 10999) {
+        modal.style.zIndex = 10999;
+      }
+    });
+  });
+};
 Vue.use(Element, {
   size: Cookies.get('size') || 'medium', // set element-ui default size
   i18n: (key, value) => i18n.t(key, value)