Browse Source

修改样式

plg 7 tháng trước cách đây
mục cha
commit
fd69698398
2 tập tin đã thay đổi với 8 bổ sung0 xóa
  1. 7 0
      src/views/ScaleMid.vue
  2. 1 0
      src/views/TestRecord.vue

+ 7 - 0
src/views/ScaleMid.vue

@@ -42,6 +42,8 @@ const subScaleData = () => {
 
 }
 
+//设置点击下一题的按钮可点击状况
+const nextFlag = ref<boolean>(true)
 
 //返回计划列表
 const goBackList = () => {
@@ -128,6 +130,10 @@ const planN = async () => {
     userInfo.savePlanCurrentNum(res.data.length)
 }
 const planNumGet = async () => {
+    if (!nextFlag.value) {
+        return
+    }
+    nextFlag.value = false
     //如果在就是登录了
     if (userInfo.token) {
         let userNo = ''
@@ -166,6 +172,7 @@ const planNumGet = async () => {
         userInfo.savePlanCurrentNum(res.data.length)
 
     }
+    nextFlag.value = true
 }
 
 //查询进行中过的计划

+ 1 - 0
src/views/TestRecord.vue

@@ -205,6 +205,7 @@ onUnmounted(() => {
 
             background-color: #ffffff;
             border-radius: 40px;
+            margin-bottom: 20px;
 
             // height: 1000px;
             .infinite-list-wrapper {