【修改】 修复判断是否有监考密码字段绑定
This commit is contained in:
@@ -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 } }) => {
|
||||
|
||||
@@ -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 } }) => {
|
||||
|
||||
Reference in New Issue
Block a user