Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lowcode-electron
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
electron
lowcode-electron
Commits
b8677c1a
Commit
b8677c1a
authored
Apr 27, 2023
by
baiyuze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
f271ece1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
index.js
src/config/index.js
+2
-4
main.js
src/main.js
+2
-1
updateWidgets.js
src/sevice/mainApi/emits/updateWidgets.js
+0
-1
No files found.
src/config/index.js
View file @
b8677c1a
const
path
=
require
(
'path'
)
const
path
=
require
(
'path'
)
const
{
cwd
}
=
require
(
'../utils'
)
const
{
cwd
}
=
require
(
'../utils'
)
module
.
exports
=
{
module
.
exports
=
{
lowcodeEnv
:
()
=>
{
return
},
name
:
'Project'
,
name
:
'Project'
,
ideWinConfig
:
{
ideWinConfig
:
{
url
:
'http://localhost:7012/paas/#/workbench'
url
:
'http://localhost:7012/paas/#/workbench'
,
devUrl
:
'http://localhost:45625'
},
},
startWinConfig
:
{
startWinConfig
:
{
width
:
636
,
width
:
636
,
...
...
src/main.js
View file @
b8677c1a
...
@@ -29,7 +29,8 @@ class Main {
...
@@ -29,7 +29,8 @@ class Main {
this
.
startWin
=
win
this
.
startWin
=
win
}
}
IDEPage
()
{
IDEPage
()
{
const
url
=
this
.
config
.
ideWinConfig
.
url
const
envKey
=
this
.
isDev
?
'devUrl'
:
'url'
const
url
=
this
.
config
.
ideWinConfig
[
envKey
]
const
win
=
this
.
createWindow
(
url
,
MAIN
.
WINDOW_TYPE
.
URL
)
const
win
=
this
.
createWindow
(
url
,
MAIN
.
WINDOW_TYPE
.
URL
)
this
.
ideWin
=
win
this
.
ideWin
=
win
}
}
...
...
src/sevice/mainApi/emits/updateWidgets.js
View file @
b8677c1a
...
@@ -13,7 +13,6 @@ class UpdateWidgets {
...
@@ -13,7 +13,6 @@ class UpdateWidgets {
complete
(
data
)
{
complete
(
data
)
{
const
ctx
=
getContext
()
const
ctx
=
getContext
()
// 通知渲染引擎成功
// 通知渲染引擎成功
console
.
log
(
data
,
'data'
)
ctx
.
win
.
send
(
IPC
.
UPDATE_WIDGETS_COMPLETE
,
data
)
ctx
.
win
.
send
(
IPC
.
UPDATE_WIDGETS_COMPLETE
,
data
)
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment