tamaina 2021-03-29 20:38:32 +09:00
parent 10d27e5fd3
commit b949dec9f4

View file

@ -75,11 +75,6 @@ export default defineComponent({
case 'post':
return post(data.options);
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) {
return window.scroll({ top: 0, behavior: 'smooth' });
}