utools.redirect('') redirect(label, payload) label String
feature.cmd.label 名称
payload String | Object
feature.cmd.type 对应的数据
返回 Boolean
该方法可以携带数据,跳转到另一个插件进行处理,如果用户未安装对应的插件,uTools 会弹出提醒并引导进入插件市场下载。
接收方应该是怎么写
少吃饭
utools.onPluginEnter(({code, type, payload, optional}) => { console.log('用户进入插件', code, type, payload) })