Vue Scripts may close only the windows that were opened by it【解决办法】

今天爱分享给大家带来Vue Scripts may close only the windows that were opened by it【解决办法】,希望能够帮助到大家。

原因:脚本只能关闭它所打开的窗口,原因是浏览器基于安全策略限制了脚本关闭非它所打开的窗口机制。
解决方案:此项目可以通过调用$store中的数据和方法进行删除。

this.$store.commit("deleteTabs", this.activeIndex);
this.$store.commit("setActiveIndex", this.openTab[this.openTab.length-1].route);
this.$router.push({ path: this.activeIndex })

原文链接:https://blog.itblood.com/1250.html,转载请注明出处。
0
我的新生活:重置0.96 [神作RPG/AI汉化/动态]
我的新生活:重置0.96 [神作RPG/AI汉化/动态]
5分钟前 有人购买 去瞅瞅看

站点公告

显示验证码
没有账号?注册  忘记密码?