注册全局组件SVG,集成pinia,封装axios
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
const Renderer = (window.require && window.require('electron')) || window.electron || {};
|
||||
const Renderer =
|
||||
(window.require && window.require('electron')) || window.electron || {}
|
||||
|
||||
/**
|
||||
* ipc
|
||||
* 官方api说明:https://www.electronjs.org/zh/docs/latest/api/ipc-renderer
|
||||
*
|
||||
*
|
||||
* 属性/方法
|
||||
* ipc.invoke(channel, param) - 发送异步消息(invoke/handle 模型)
|
||||
* ipc.sendSync(channel, param) - 发送同步消息(send/on 模型)
|
||||
@@ -20,14 +21,11 @@ const Renderer = (window.require && window.require('electron')) || window.electr
|
||||
/**
|
||||
* ipc
|
||||
*/
|
||||
const ipc = Renderer.ipcRenderer || undefined;
|
||||
const ipc = Renderer.ipcRenderer || undefined
|
||||
|
||||
/**
|
||||
* 是否为EE环境
|
||||
*/
|
||||
const isEE = ipc ? true : false;
|
||||
|
||||
export {
|
||||
Renderer, ipc, isEE
|
||||
};
|
||||
const isEE = ipc ? true : false
|
||||
|
||||
export { Renderer, ipc, isEE }
|
||||
|
||||
Reference in New Issue
Block a user