
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
主要针对electron-vue做的插件,必在electron-vue的基础上使用,针对electron-vue中打开新的无边框窗口缓慢、传参困难等问题做的优化,安装方式简单、使用简单
主要针对electron-vue做的插件,必在electron-vue的基础上使用,针对electron-vue中打开新的无边框窗口缓慢、传参困难等问题做的优化,安装方式简单、使用简单
首先安装electron-vue 然后安装此插件执行如下操作
npm i -S electron-vue-windows
在renderer/main.js里初始化加入以下代码
import Win from 'electron-vue-windows'
Win.init()
Vue.prototype.$Win = Win
然后新建一个backGround.vue文件,内容如下
<template>
<div></div>
</template>
<script>
export default {
name: 'backGround',
data () {
return {
}
},
methods: {
},
mounted: function () {
this.$Win.changePath(this)
}
}
</script>
<style>
</style>
把该vue文件加入根路由下
export default new Router({
routes: [
{
path: '/backGround',
name: 'backGround',
component: require('@/components/backGround').default
}
]
})
index.vue
let data = await this.$Win.openWin({
width: 700, // 窗口宽
height: 600, // 窗口高
router: '/user', // 路由
data: {id: 1}, // 传送数据
name: 'user' // 窗口名称
})
console.log(data) // 新窗口返回的数据 {value: 2}
user.vue // 获取传入的参数
let data = this.$Win.getParameter()
console.log(data) // {id: 1}
// 返回数据并关闭当前窗口
let data = {value: 2}
this.$Win.closeWin(data)
FAQs
主要针对electron-vue做的插件,必在electron-vue的基础上使用,针对electron-vue中打开新的无边框窗口缓慢、传参困难等问题做的优化,安装方式简单、使用简单
We found that yh-window demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.