fix:评估评分题目显示、提交问题

This commit is contained in:
wyx
2023-03-28 17:52:51 +08:00
parent 32549f7d70
commit 957db8eeee
2 changed files with 4 additions and 4 deletions

View File

@@ -27,7 +27,7 @@ import { GET_USER_INFO } from "@/api/ThirdApi";
import { getCookie } from "@/api/utils"; import { getCookie } from "@/api/utils";
import { USER_INFO } from "@/api/api"; import { USER_INFO } from "@/api/api";
console.log("版本2.1.3------------"); console.log("版本2.1.5------------");
const store = useStore(); const store = useStore();
const router = useRouter(); const router = useRouter();

View File

@@ -31,11 +31,11 @@
:key="key" :key="key"
:style="{ :style="{
background: background:
value.selectAnswer === item value.selectAnswer === item + 1
? 'rgba(86, 163, 249, 1)' ? 'rgba(86, 163, 249, 1)'
: 'rgba(86, 163, 249, 0)', : 'rgba(86, 163, 249, 0)',
color: color:
value.selectAnswer === item value.selectAnswer === item + 1
? '#fff' ? '#fff'
: 'rgba(86, 163, 249, 1)', : 'rgba(86, 163, 249, 1)',
}" }"
@@ -44,7 +44,7 @@
if (data.isSubmit) { if (data.isSubmit) {
return; return;
} }
value.selectAnswer = item; value.selectAnswer = item + 1;
} }
" "
> >