【修改】 修复判断是否有监考密码字段绑定

This commit is contained in:
陆光LG
2025-10-20 15:25:27 +08:00
parent c6eaf09cd5
commit 3eb50ce7a6
2 changed files with 4 additions and 4 deletions

View File

@@ -114,7 +114,7 @@ const inputCode = ref('')
const goExam = async () => {
const localhostIp = localStorage.getItem('serverIP') || ''
const httpMode = localStorage.getItem('httpMode') || ''
if (examStore.buttonEnable.is_exam_password === '1') {
if (examStore.buttonEnable.isExamPassword === '1') {
//不需要密码
AppControlCheckApi(localhostIp).then(({ data: { data } }) => {
// 格式化返回结果
@@ -174,7 +174,7 @@ const goExam = async () => {
confirmButtonClass: 'el-button--success',
closeOnClickModal: false,
beforeClose: (action, instance, done) => {
if (action === 'confirm' && inputCode.value === examStore.buttonEnable.exam_password) {
if (action === 'confirm' && inputCode.value === examStore.buttonEnable.examPassword) {
// 密码正确
done()
AppControlCheckApi(localhostIp).then(({ data: { data } }) => {

View File

@@ -65,7 +65,7 @@ const inputCode = ref('')
const goExam = async () => {
const localhostIp = localStorage.getItem('serverIP') || ''
const httpMode = localStorage.getItem('httpMode') || ''
if (examStore.buttonEnable.is_exam_password === '1') {
if (examStore.buttonEnable.isExamPassword === '1') {
//不需要密码
AppControlCheckApi(localhostIp).then(({ data: { data } }) => {
// 格式化返回结果
@@ -125,7 +125,7 @@ const goExam = async () => {
confirmButtonClass: 'el-button--success',
closeOnClickModal: false,
beforeClose: (action, instance, done) => {
if (action === 'confirm' && inputCode.value === examStore.buttonEnable.exam_password) {
if (action === 'confirm' && inputCode.value === examStore.buttonEnable.examPassword) {
// 密码正确
done()
AppControlCheckApi(localhostIp).then(({ data: { data } }) => {