提交 d5b2ae6d authored 作者: lihuihui's avatar lihuihui

update: 调试倒计时

上级 63811da0
...@@ -6,12 +6,16 @@ module.exports = { ...@@ -6,12 +6,16 @@ module.exports = {
isEnableToIphoneDebugger: true, 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: {
}
} }
...@@ -273,8 +273,8 @@ export default { ...@@ -273,8 +273,8 @@ export default {
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(this.examInfo.end_time, 'end_time')
console.log(nowtime, 'nowtime') console.log(nowtime.getTime(), 'nowtime')
console.log(endtime, 'endtime') console.log(endtime.getTime(), 'endtime')
const countTime = endtime.getTime() - nowtime.getTime() const countTime = endtime.getTime() - nowtime.getTime()
console.log(countTime, 'countTime') console.log(countTime, 'countTime')
if (countTime <= 0) { if (countTime <= 0) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论