Explorar el Código

refactor: 优化性别设置组件的点击事件处理,简化代码结构

EvilDragon hace 1 mes
padre
commit
2952c10369
Se han modificado 1 ficheros con 3 adiciones y 7 borrados
  1. 3 7
      packages/app/src/pages/mine/setting/index.vue

+ 3 - 7
packages/app/src/pages/mine/setting/index.vue

@@ -191,13 +191,9 @@ onMounted(async () => {
       ></SectionHeading>
     </button>
     <template v-if="isDesigner">
-      <SectionHeading
-        title="性别"
-        size="sm"
-        end-text="设置"
-        end-arrow
-        @click="handleSetSex"
-      ></SectionHeading>
+      <div @click="handleSetSex">
+        <SectionHeading title="性别" size="sm" end-text="设置" end-arrow></SectionHeading>
+      </div>
       <div class="relative" @click="birthdayShow = true">
         <SectionHeading title="生日" size="sm" end-text="设置" end-arrow></SectionHeading>
       </div>