Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivWeb
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
ReactWeb5
CivWeb
Commits
36a949b4
Commit
36a949b4
authored
Sep 15, 2023
by
杨思琦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改workflow加载
parent
04aec28a
Pipeline
#78918
passed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
micro.js
src/micro.js
+16
-1
No files found.
src/micro.js
View file @
36a949b4
...
@@ -165,6 +165,21 @@ export const application = global => {
...
@@ -165,6 +165,21 @@ export const application = global => {
});
});
}
}
});
});
const
workflow
=
products
.
filter
(
item
=>
item
.
name
===
'civ_workflow'
);
if
(
workflow
.
length
===
0
)
{
products
.
push
({
name
:
'civ_workflow'
,
noPrefetch
:
true
,
entry
:
`
${
window
.
location
.
protocol
}
//
${
window
.
location
.
host
}
/civ_workflow`
,
container
:
'#micro-container'
,
activeRule
:
genActiveRule
(
'/civbase/civ_workflow'
),
props
:
{
routerBase
:
'civ_workflow'
,
event
,
store
:
microStore
,
},
});
}
const
entrys
=
process
.
env
.
NODE_ENV
!==
'production'
?
micorConfig
.
dev
:
products
;
const
entrys
=
process
.
env
.
NODE_ENV
!==
'production'
?
micorConfig
.
dev
:
products
;
const
apps
=
entrys
.
map
(
item
=>
({
const
apps
=
entrys
.
map
(
item
=>
({
...
@@ -248,7 +263,7 @@ export const initMicroApps = (url) => {
...
@@ -248,7 +263,7 @@ export const initMicroApps = (url) => {
global
:
globalStore
.
globalf
global
:
globalStore
.
globalf
});
});
const
microApps
=
application
();
const
microApps
=
application
();
const
micro
=
microApps
.
filter
(
app
=>
(
!
/civweb4/
.
test
(
app
.
name
)
&&
url
.
indexOf
(
app
.
name
)
<
0
))
??
[];
const
micro
=
microApps
.
filter
(
app
=>
(
!
/civweb4/
.
test
(
app
.
name
)
&&
url
.
indexOf
(
app
.
name
)
<
0
&&
!
app
.
noPrefetch
))
??
[];
if
(
window
?.
qiankunIsCache
){
if
(
window
?.
qiankunIsCache
){
microStore
.
on
(
"event:dropCache"
,
(()
=>
{
microStore
.
on
(
"event:dropCache"
,
(()
=>
{
micorManager
.
map
((
micro
)
=>
{
micorManager
.
map
((
micro
)
=>
{
...
...
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