File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -308,10 +308,15 @@ export default {
308
308
this .openSystemApps (item)
309
309
} else if (item .app_type === ' mircoApp' ) {
310
310
// this.showMircoApp(item);
311
- this .$messageBus (' mircoapp_communicate' , {
312
- action: MIRCO_APP_ACTION_ENUM .OPEN ,
313
- name: item .name
314
- })
311
+ if (item .open_type === " newTab" ) {
312
+ window .open (` ./modules/${ item .name } ` , ' _blank' );
313
+ } else {
314
+ this .$messageBus (' mircoapp_communicate' , {
315
+ action: MIRCO_APP_ACTION_ENUM .OPEN ,
316
+ name: item .name
317
+ })
318
+ }
319
+
315
320
} else if (this .isLinkApp ) {
316
321
window .open (item .hostname , ' _blank' );
317
322
this .removeIdFromSessionStorage (item .name );
Original file line number Diff line number Diff line change @@ -233,14 +233,15 @@ export default {
233
233
})
234
234
// mirco app list
235
235
const mircoAppListRaw = await this .$api .sys .getEntry ().then (res => res .data .data || []);
236
- const mircoAppList = mircoAppListRaw .map (item => {
236
+ const mircoAppList = mircoAppListRaw .filter ( item => item ? . show ?? true ). map (item => {
237
237
return {
238
238
name: item .name ,
239
239
entry: item .entry ,
240
240
title: item .title ,
241
241
icon: item .icon ,
242
242
status: " running" ,
243
243
app_type: " mircoApp" ,
244
+ open_type: item .formality .modal ,
244
245
// TODO Resolve metadata structure conflicts and ensure uniformity and non-redundancy in the application's data models.
245
246
// formality: item.formality,
246
247
// prefetch: item.prefetch
You can’t perform that action at this time.
0 commit comments