提交 e99cf0b9 编写于 作者: 杨广俊's avatar 杨广俊

优化

上级 3172576b
......@@ -64,6 +64,10 @@ export default {
if (window.__isWeb) {
this.getTabData();
}
window.__refresh = function() {
_this.getUserInfo();
}
this.getUserInfo();
},
......@@ -80,10 +84,12 @@ export default {
__funcName: "__getUserInfo"
});
},
scrollFun() {
let scrollTop = document.documentElement.scrollTop;
this.isShowBackTop = scrollTop > 0 ? true : false;
},
goToPage(itemData) {
let paramList = deepCopy(this.setEventByModuleCode(itemData));
let isStrokeUrl =
......
......@@ -125,11 +125,9 @@ export default {
_this.getCourse();
}
window.__refresh = function() {
_this.getBaseData();
_this.getNewClass();
_this.getCourse();
_this.getUserInfo()
}
window.addEventListener('scroll',this.handleScroll)
window.addEventListener('scroll',_this.handleScroll)
},
computed: {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册