Browse Source

Merge branch 'startLogin'

mo 1 year ago
parent
commit
939a772e18
1 changed files with 6 additions and 4 deletions
  1. 6 4
      src/views/classList/index.tsx

+ 6 - 4
src/views/classList/index.tsx

@@ -431,10 +431,11 @@ export default defineComponent({
         <NModal
           v-model:show={state.showaddClass}
           style={{ width: '500px' }}
+          display-directive='if'
           preset="card"
           class={['modalTitle background']}
           title={'创建班级'}>
-          {state.showaddClass ? (
+
             <CreateClass
               gradeNumList={state.gradeNumList}
               classArray={classArray}
@@ -442,22 +443,23 @@ export default defineComponent({
               onGetList={() => getList()}
               onClose={() => (state.showaddClass = false)}
             />
-          ) : null}
+
         </NModal>
         <NModal
           v-model:show={state.showResetClass}
           style={{ width: '500px' }}
+          display-directive='if'
           preset="card"
           class={['modalTitle background']}
           title={'修改声部'}>
-          {state.showResetClass ? (
+
             <ResetSubject
               activeRow={state.activeRow}
               subjectList={state.subjectList}
               onGetList={() => getList()}
               onClose={() => (state.showResetClass = false)}
             />
-          ) : null}
+
         </NModal>
 
         <NModal