Replies: 5 comments
-
想整合electron搞个界面出来,然后引入在vue项目中引入oicq后就会出现下面的问题(node比较菜,感觉用两个node项目无限套娃了) |
Beta Was this translation helpful? Give feedback.
-
要写在主进程里吧?或者用preload暴露到渲染进程。 |
Beta Was this translation helpful? Give feedback.
-
允许electron 使用require,我在index.html里面写了 window.oicq = require("oicq") |
Beta Was this translation helpful? Give feedback.
-
首先,前端估计是没法直接用oicq,你要在后端写好借口通过ipc暴露给前端 |
Beta Was this translation helpful? Give feedback.
-
前端没有能力直接调 oicq, 建议在主进程里面监听之后推到 IPC 里面. |
Beta Was this translation helpful? Give feedback.
-
Node.js Version
No response
Package Version
No response
Login Protocol
No response
Bug Description
No response
Log Details
No response
Beta Was this translation helpful? Give feedback.
All reactions