修复problem概率性不显示mathjax的问题

This commit is contained in:
zema1 2017-12-01 19:55:06 +08:00
parent df3a76c7e4
commit ec3aba7961
2 changed files with 4 additions and 4 deletions

View File

@ -70,7 +70,7 @@
<Panel>
<span slot="title">Import User
<el-popover placement="right" trigger="hover">
<p>Only support csv file without headers, check the <a href="https://github.com">link</a> for details</p>
<p>Only support csv file without headers, check the <a href="http://docs.onlinejudge.me/#/onlinejudge/guide/import_users">link</a> for details</p>
<i slot="reference" class="el-icon-fa-question-circle import-user-icon"></i>
</el-popover>
</span>

View File

@ -255,6 +255,9 @@
},
methods: {
init () {
this.$nextTick(() => {
window.MathJax.Hub.Queue(['Typeset', window.MathJax.Hub, 'problem-content'])
})
this.$Loading.start()
this.contestID = this.$route.params.contestID
this.problemID = this.$route.params.problemID
@ -276,9 +279,6 @@
if (template && template[this.language]) {
this.code = template[this.language]
}
this.$nextTick(() => {
window.MathJax.Hub.Queue(['Typeset', window.MathJax.Hub, 'problem-content'])
})
}, () => {
this.$Loading.error()
})