注册全局组件SVG,集成pinia,封装axios

This commit is contained in:
2024-08-08 19:08:15 +08:00
parent f0cc1b54c2
commit 74bd16dc51
31 changed files with 4753 additions and 122 deletions

View File

@@ -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 }