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 {
isReg: false,
loginForm: {
username: '13563422432',
password: '111aaa',
username: '',
password: '',
},
loginRules: {
username: [{ required: true, message: '请输入用户名', trigger: 'blur' }],

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

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

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

Loading…
Cancel
Save