add comment

master
yujialong 3 years ago
parent 10dfbc3aca
commit c9417c30ed
  1. 4
      src/pages/account/login/index.vue
  2. 8
      src/pages/exam/do/index.vue
  3. 1
      src/pages/practice/do/index.vue
  4. 6
      src/setting.js

@ -34,8 +34,8 @@ export default {
return { return {
isReg: false, isReg: false,
loginForm: { loginForm: {
username: '13563422432', username: '',
password: '111aaa', password: '',
}, },
loginRules: { loginRules: {
username: [{ required: true, message: '请输入用户名', trigger: 'blur' }], username: [{ required: true, message: '请输入用户名', trigger: 'blur' }],

@ -169,15 +169,15 @@ export default {
}, },
mounted() { mounted() {
this.getData() this.getData()
this.addLeaveEvent() this.addLeaveEvent()//
this.queryState() this.queryState()//
}, },
beforeDestroy(){ beforeDestroy(){
clearInterval(this.timer) clearInterval(this.timer)
clearInterval(this.queryStateTimer) clearInterval(this.queryStateTimer)
window.onbeforeunload = null window.onbeforeunload = null
window.updateProgress = null window.updateProgress = null
this.addRecords() this.addRecords()//
}, },
methods: { methods: {
getData() { getData() {
@ -351,8 +351,10 @@ export default {
e.map((n,k) => { e.map((n,k) => {
let userAnswer = '' let userAnswer = ''
if(i == 1){ if(i == 1){
//
userAnswer = n.val.join('') userAnswer = n.val.join('')
}else if(i == 3){ }else if(i == 3){
//
userAnswer = [...document.querySelectorAll(`.stem${i}${k} input`)].map(n => n.value).filter(n => n).join('<>') userAnswer = [...document.querySelectorAll(`.stem${i}${k} input`)].map(n => n.value).filter(n => n).join('<>')
}else{ }else{
userAnswer = n.val userAnswer = n.val

@ -143,6 +143,7 @@ export default {
]), ]),
}, },
mounted() { mounted() {
//
this.getData() this.getData()
this.addLeaveEvent() this.addLeaveEvent()
}, },

@ -15,8 +15,8 @@ const Setting = {
// 页面切换时,是否显示模拟的进度条 // 页面切换时,是否显示模拟的进度条
showProgressBar: true, showProgressBar: true,
// 接口请求地址 // 接口请求地址
// apiBaseURL: env === 'development' ? 'http://192.168.31.151:9000' : 'http://8.134.8.197:9000', // apiBaseURL: env === 'development' ? 'http://192.168.31.151:9000' : 'http://112.74.110.92:9000',
apiBaseURL: env === 'development' ? 'http://192.168.31.151:9000' : 'http://8.134.8.197:9000', apiBaseURL: env === 'development' ? 'http://112.74.110.92:9000' : 'http://112.74.110.92:9000',
// 接口请求返回错误时,弹窗的持续时间,单位:秒 // 接口请求返回错误时,弹窗的持续时间,单位:秒
modalDuration: 3, modalDuration: 3,
// 接口请求返回错误时,弹窗的类型,可选值为 Message 或 Notice // 接口请求返回错误时,弹窗的类型,可选值为 Message 或 Notice
@ -60,7 +60,7 @@ const Setting = {
dynamicRoute: false, dynamicRoute: false,
// 文件上传 // 文件上传
upload: { upload: {
apiURL: 'http://8.134.8.197:8001', apiURL: 'http://112.74.110.92:8001',
maxSize: 30, maxSize: 30,
}, },
}; };

Loading…
Cancel
Save