首页 > 技术文章 > electron 的跳转

sxz2008 2017-05-16 10:34 原文

                          // 测试 正常跳转应该登录成功
                       
                        // that.timer = setInterval(() => {
                            that.$router.push('/mainChat');//路由跳转mainChat
                            const remote = require('electron').remote;
                            const BrowserWindow = remote.BrowserWindow; //改变窗口大小
                            BrowserWindow.mainWindow.setSize
(common.WINDOW_SIZE_MAINCIAT.width, common.WINDOW_SIZE_MAINCIAT.height); BrowserWindow.mainWindow.center();
//窗口打开居中显示 // }, 8000); // clearInterval(that.timer);

 

推荐阅读