V 3.3.3
1. 修复MJ设置初始化问题 2. 添加MJ本地代理模式,可以本地部署的代理模式
This commit is contained in:
+4
-2
@@ -14,7 +14,6 @@ import { ImageGenerate } from './ReverseManage/imageGenerate.js'
|
||||
import { Setting } from './setting/setting'
|
||||
import { has, isEmpty } from 'lodash'
|
||||
import { AutoSync } from './setting/autoSync.js'
|
||||
import { TaskManager } from './Service/task/taskManage'
|
||||
import { SoftWareServiceBasic } from './Service/ServiceBasic/softwareServiceBasic'
|
||||
|
||||
// ipc
|
||||
@@ -22,12 +21,15 @@ import { DiscordIpc, RemoveDiscordIpc } from './IPCEvent/discordIpc.js'
|
||||
import { Logger } from './logger.js'
|
||||
import { RegisterIpc } from './IPCEvent/index.js'
|
||||
|
||||
import { InitRemoteMjSettingType } from './initFunc'
|
||||
|
||||
let tools = new Tools()
|
||||
let imageGenerate = new ImageGenerate(global)
|
||||
let setting = new Setting(global)
|
||||
let softWareServiceBasic = new SoftWareServiceBasic()
|
||||
|
||||
async function InitData(gl) {
|
||||
await InitRemoteMjSettingType()
|
||||
let res = await setting.getSettingDafultData()
|
||||
gl.config = res
|
||||
return res
|
||||
@@ -95,7 +97,7 @@ async function createWindow(hash = 'ShowMessage', data, url = null) {
|
||||
if (is.dev && process.env['ELECTRON_RENDERER_URL']) {
|
||||
mainWindow.loadURL(process.env['ELECTRON_RENDERER_URL'] + '/#/' + hash)
|
||||
// mainWindow.webContents.openDevTools()
|
||||
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
|
||||
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'
|
||||
} else {
|
||||
if (hash != '') {
|
||||
mainWindow.loadURL(`file://${path.join(__dirname, '../renderer/index.html')}#/${hash}`)
|
||||
|
||||
Reference in New Issue
Block a user