提交 8f215059 authored 作者: lihuihui's avatar lihuihui

updata

上级 43b579a0
...@@ -89,6 +89,8 @@ export default { ...@@ -89,6 +89,8 @@ export default {
clearTime: null clearTime: null
} }
}, },
created() {
},
mounted() { mounted() {
this.dataCombined() this.dataCombined()
}, },
...@@ -232,6 +234,29 @@ export default { ...@@ -232,6 +234,29 @@ export default {
: isSign = false : isSign = false
this.$emit('isSign', isSign) this.$emit('isSign', isSign)
Bus.$emit('monitoringChanges') Bus.$emit('monitoringChanges')
},
createTag() {
if ($('math').length) {
if ($('.MathTag').length) {
$('.MathTag').remove()
this.addTag()
} else {
this.addTag()
}
}
},
addTag() {
const cdn = 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=MML_HTMLorMML'
const script = document.createElement('script')
script.type = 'text/javascript'
script.src = cdn
script.className = 'MathTag'
const script2 = document.createElement('script')
script2.type = 'text/javascript'
script2.innerHTML = 'window.MathJax = { MathML: { extensions: ["mml3.js", "content-mathml.js"]}}'
script2.className = 'MathTag'
$('body').append(script2)
$('body').append(script)
} }
}, },
computed: { computed: {
...@@ -244,6 +269,9 @@ export default { ...@@ -244,6 +269,9 @@ export default {
this.dataCombined() this.dataCombined()
this.setCache() this.setCache()
this.signCallback() this.signCallback()
this.$nextTick(() => {
this.createTag()
})
} }
} }
} }
......
...@@ -124,6 +124,7 @@ export default { ...@@ -124,6 +124,7 @@ export default {
value[i].key = key[i] value[i].key = key[i]
} }
this.allForm = this.dataFilter(value) this.allForm = this.dataFilter(value)
console.log(this.dataFilter(value))
// console.log(this.form, '===') // console.log(this.form, '===')
// this.allForm = value // this.allForm = value
}, },
......
...@@ -126,7 +126,7 @@ export default { ...@@ -126,7 +126,7 @@ export default {
// 禁止input输入空格 // 禁止input输入空格
keydown (event) { keydown (event) {
console.log(event.keyCode) console.log(event.keyCode)
if (event.keyCode === 32 || event.keyCode === 187) { if (event.keyCode === 32 || event.keyCode === 187 || event.keyCode === 107) {
event.returnValue = false event.returnValue = false
} }
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论