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)
|
||||
if(!firstIn.value){
|
||||
nextTick(() => {
|
||||
// 要放在对响应式数据修改之后
|
||||
try {
|
||||
let ele = document.querySelector('.phonecont');
|
||||
ele.scrollTop = ele.scrollHeight;
|
||||
} catch (error) {
|
||||
}
|
||||
try {
|
||||
// 要放在对响应式数据修改之后
|
||||
let ele = document.querySelector('.phonecont');
|
||||
ele.scrollTop = ele.scrollHeight;
|
||||
} catch (error) {
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@ -91,13 +91,12 @@ router.beforeEach(async(to, from, next) => {
|
||||
const menuList= permissionStore.menuList;
|
||||
next({ path: menuList[0].children[0].path });
|
||||
} else {
|
||||
if(to.path=="/" || to.path=="/admin"){
|
||||
const menuList= permissionStore.menuList;
|
||||
next({ path: menuList[0].children[0].path });
|
||||
}else{
|
||||
next();
|
||||
}
|
||||
|
||||
if(to.path=="/" || to.path=="/admin"){
|
||||
const menuList= permissionStore.menuList;
|
||||
next({ path: menuList[0].children[0].path });
|
||||
}else{
|
||||
next();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user