提交 63811da0 authored 作者: lihuihui's avatar lihuihui

update: 调试倒计时

上级 26b4b778
module.exports = { module.exports = {
domain: 'dev.ezijing.com', domain: 'dev.ezijing.com',
url: 'https://x-exam.ezijing.com/api', url: 'https://x-exam.ezijing.com/api',
isEnableToIphoneDebugger: false, isEnableToIphoneDebugger: true,
// apiBaseURL: '//demo-login.ezijing.com/', // apiBaseURL: '//demo-login.ezijing.com/',
webpack: { webpack: {
externals: { externals: {
......
...@@ -3,19 +3,15 @@ module.exports = { ...@@ -3,19 +3,15 @@ module.exports = {
DesDir: './client-dist', DesDir: './client-dist',
apiBaseURL: '/api', apiBaseURL: '/api',
isUploadStatic: false, isUploadStatic: false,
isEnableToIphoneDebugger: false, isEnableToIphoneDebugger: true,
webpack: { webpack: {
externals: { externals: {
'CKEDITOR': 'window.CKEDITOR', CKEDITOR: 'window.CKEDITOR',
'Base64': 'window.Base64', Base64: 'window.Base64',
'md5': 'window.md5', md5: 'window.md5',
'regeneratorRuntime': 'window.regeneratorRuntime' regeneratorRuntime: 'window.regeneratorRuntime'
} }
}, },
ProvidePlugin: { ProvidePlugin: {},
others: {}
},
others: {
}
} }
...@@ -272,7 +272,11 @@ export default { ...@@ -272,7 +272,11 @@ export default {
this.clearTime = setInterval(() => { this.clearTime = setInterval(() => {
const nowtime = new Date() const nowtime = new Date()
const endtime = new Date(this.examInfo.end_time) const endtime = new Date(this.examInfo.end_time)
console.log(this.examInfo.end_time, 'end_time')
console.log(nowtime, 'nowtime')
console.log(endtime, 'endtime')
const countTime = endtime.getTime() - nowtime.getTime() const countTime = endtime.getTime() - nowtime.getTime()
console.log(countTime, 'countTime')
if (countTime <= 0) { if (countTime <= 0) {
this.isExamTimeDate = false this.isExamTimeDate = false
clearInterval(this.clearTime) clearInterval(this.clearTime)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论