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

优化

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