Browse Source

feat: 样式适配暂还原

chenhao 2 years ago
parent
commit
d1d1ed4549
2 changed files with 10 additions and 4 deletions
  1. 1 1
      postcss.config.cjs
  2. 9 3
      src/modules/admin-data/marking/index.vue

+ 1 - 1
postcss.config.cjs

@@ -13,7 +13,7 @@ module.exports = {
       minPixelValue: 1,
       mediaQuery: false,
       replace: true,
-      exclude: [/node_modules/],
+      exclude: undefined,
       include: undefined,
       landscape: false,
       landscapeUnit: 'vw',

+ 9 - 3
src/modules/admin-data/marking/index.vue

@@ -50,8 +50,8 @@
 
 <script setup lang="ts" name="DataMarking">
 /** 导入评卷数据 */
-import { computed, reactive, ref, watch } from 'vue'
-import { ElButton, ElInput, ElCard, ElFormItem, ElUpload, ElMessage, ElProgress } from 'element-plus'
+import { computed, nextTick, reactive, ref, watch } from 'vue'
+import { ElButton, ElInput, ElCard, ElFormItem, ElUpload, ElProgress } from 'element-plus'
 import { useTimeoutFn } from '@vueuse/core'
 import ConfirmButton from '@/components/common/ConfirmButton.vue'
 import BaseForm from '@/components/element/BaseForm.vue'
@@ -201,7 +201,13 @@ const items = computed<EpFormItem[]>(() => {
 })
 
 function checkImportStatus() {
-  getStudentImportStatus().finally(start)
+  getStudentImportStatus().finally(() => {
+    nextTick(() => {
+      if (!allowImport.value) {
+        start()
+      }
+    })
+  })
 }
 
 async function onSubmit() {