electron 的跳转


                          // 测试 正常跳转应该登录成功
                       
                        // 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);

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM