Browse Source

修改题目乱序

plg 6 months ago
parent
commit
382fa76a7c
3 changed files with 5 additions and 4 deletions
  1. 1 1
      src/views/Login.vue
  2. 3 2
      src/views/Scale.vue
  3. 1 1
      src/views/ScaleMid.vue

+ 1 - 1
src/views/Login.vue

@@ -77,7 +77,7 @@ const loginFun = async () => {
     }
     const res: any = await userLoginApi(params)
     if (res.code == 200) {
-        if (res.data.type == '3') {
+        if (res.data.type == '1') {
             userInfo.saveToken(res.data.token)
             userInfo.saveUserInfo(res.data.user)
             ElMessage({ message: `${res.msg}`, type: 'success' })

+ 3 - 2
src/views/Scale.vue

@@ -242,7 +242,8 @@ onUnmounted(() => {
                         <div class="scale_title">{{ topicIndex }}:{{ scaleList[topicIndex - 1].content }}</div>
 
                         <el-radio-group v-model="scaleList[topicIndex - 1].isCheck" class="scale_radio_group">
-                            <el-radio-button v-for="item in scaleList[topicIndex - 1].checkItems.split(';')  "
+                            <el-radio-button
+                                v-for="item in scaleList[topicIndex - 1].checkItems.split(';').sort(() => { return Math.random() - 0.5 })  "
                                 @change="radioFun" :label="item" :value="item" />
                         </el-radio-group>
                         <div class="scale_button">
@@ -372,7 +373,7 @@ onUnmounted(() => {
             .report_jt {
                 display: flex;
                 flex-direction: column;
-                font-size: 30px;
+                font-size: 20px;
                 font-weight: 700;
                 letter-spacing: 3px;
 

+ 1 - 1
src/views/ScaleMid.vue

@@ -352,7 +352,7 @@ onUnmounted(() => {
             .report_jt {
                 display: flex;
                 flex-direction: column;
-                font-size: 30px;
+                font-size: 20px;
                 font-weight: 700;
                 letter-spacing: 3px;