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

课程讨论模块提取

上级 52a57de5
...@@ -66,10 +66,10 @@ export default { ...@@ -66,10 +66,10 @@ export default {
}, },
mounted () { mounted () {
this.loadAjax() this.loadAjax()
window.addEventListener('resize', this.resizeRoot.bind(this), false) // window.addEventListener('resize', this.resizeRoot.bind(this), false)
}, },
destroyed () { destroyed () {
window.removeEventListener('resize', this.resizeRoot.bind(this), false) // window.removeEventListener('resize', this.resizeRoot.bind(this), false)
}, },
updated () { updated () {
this.resizeRoot() this.resizeRoot()
...@@ -93,6 +93,7 @@ export default { ...@@ -93,6 +93,7 @@ export default {
loadAjax () { loadAjax () {
let pathUrl = '' let pathUrl = ''
this.tabs.map((item, index) => { this.tabs.map((item, index) => {
debugger
if (item.isShow) { if (item.isShow) {
pathUrl = item.path pathUrl = item.path
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论