This commit is contained in:
parent
10d27e5fd3
commit
b949dec9f4
1 changed files with 0 additions and 5 deletions
|
@ -75,11 +75,6 @@ export default defineComponent({
|
||||||
case 'post':
|
case 'post':
|
||||||
return post(data.options);
|
return post(data.options);
|
||||||
case 'push':
|
case 'push':
|
||||||
if (data.url.startsWith('/my/messaging')) {
|
|
||||||
if (router.currentRoute.value.path === data.url) return;
|
|
||||||
if (ColdDeviceStorage.get('chatOpenBehavior') === 'window') return pageWindow(data.url);
|
|
||||||
if (ColdDeviceStorage.get('chatOpenBehavior') === 'popout') return popout(data.url);
|
|
||||||
}
|
|
||||||
if (router.currentRoute.value.path === data.url) {
|
if (router.currentRoute.value.path === data.url) {
|
||||||
return window.scroll({ top: 0, behavior: 'smooth' });
|
return window.scroll({ top: 0, behavior: 'smooth' });
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue