瀏覽代碼

修改优化

lex-xin 9 月之前
父節點
當前提交
0b823795af

+ 3 - 0
src/TUIKit/TUIComponents/components/transferTUI/style/web.scss

@@ -116,6 +116,9 @@ img,
   font-size: 12Px;
   line-height: 24Px;
   border-radius: 4Px;
+  &:focus-visible, &:focus {
+    outline: none;
+  }
 }
 
 .btn-no {

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

@@ -119,13 +119,13 @@
           </li> -->
         </ul>
 
-        <div v-if="currentUserDetail.groupRoleType === 'Owner'" class="admin-content space-top" style="background-color: #fff; padding-top: 12px;border-top: 1Px solid #f4f5f9;">
+        <div v-if="currentUserDetail.groupRoleType === 'Owner' || currentUserDetail.groupRoleType === 'Admin'" class="admin-content space-top" style="background-color: #fff; padding-top: 12px;border-top: 1Px solid #f4f5f9;">
           <aside>
             <label>学生禁言</label>
           </aside>
           <Slider :open="groupDetail.configJson.mute" @change="setAllMuteTime" />
         </div>
-        <div v-if="currentUserDetail.groupRoleType === 'Owner'" class="admin-content space-top" style="background-color: #fff; padding-top: 12px;border-top: 1Px solid #f4f5f9;" @click.stop="() => {
+        <div v-if="currentUserDetail.groupRoleType === 'Owner' || currentUserDetail.groupRoleType === 'Admin'" class="admin-content space-top" style="background-color: #fff; padding-top: 12px;border-top: 1Px solid #f4f5f9;" @click.stop="() => {
           userInfo.muteList = []
           setTab('onlyMute')
         }">
@@ -736,6 +736,8 @@ const manage = defineComponent({
 
     const submit = (userList: any) => {
       console.log(userList, data.transferType, " data.transferType");
+      if(userList.length <= 0) return
+      
       if (data.transferType === "remove") {
         data.userList = userList;
         data.delDialogShow = !data.delDialogShow;
@@ -931,6 +933,7 @@ const manage = defineComponent({
         });
 
         data.currentUserDetail = res.data;
+
       } catch {
         //
       }

+ 3 - 0
src/index.scss

@@ -1,3 +1,6 @@
+*:focus-visible {
+  outline: none;
+}
 .imChat {
   background: #fff;
   width: 1100Px;