Compare commits
No commits in common. "master" and "dev" have entirely different histories.
@ -209,12 +209,14 @@ const HandleGetIm = async (params = {}) => {
|
|||||||
console.log(chatlist.value)
|
console.log(chatlist.value)
|
||||||
if(!firstIn.value){
|
if(!firstIn.value){
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
// 要放在对响应式数据修改之后
|
try {
|
||||||
try {
|
// 要放在对响应式数据修改之后
|
||||||
let ele = document.querySelector('.phonecont');
|
let ele = document.querySelector('.phonecont');
|
||||||
ele.scrollTop = ele.scrollHeight;
|
ele.scrollTop = ele.scrollHeight;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
}
|
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -91,13 +91,12 @@ router.beforeEach(async(to, from, next) => {
|
|||||||
const menuList= permissionStore.menuList;
|
const menuList= permissionStore.menuList;
|
||||||
next({ path: menuList[0].children[0].path });
|
next({ path: menuList[0].children[0].path });
|
||||||
} else {
|
} else {
|
||||||
if(to.path=="/" || to.path=="/admin"){
|
if(to.path=="/" || to.path=="/admin"){
|
||||||
const menuList= permissionStore.menuList;
|
const menuList= permissionStore.menuList;
|
||||||
next({ path: menuList[0].children[0].path });
|
next({ path: menuList[0].children[0].path });
|
||||||
}else{
|
}else{
|
||||||
next();
|
next();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user