Skip to content

Commit

Permalink
perf: 支持 virtual_app
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeEirc committed Dec 6, 2023
1 parent 0e52563 commit 8949af4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export class ElementConnectMethodComponent implements OnInit {
{value: 'web', label: 'Web', fa: 'fa-globe', methods: []},
{value: 'native', label: this._i18n.instant('Native'), fa: 'fa-desktop', methods: []},
{value: 'applet', label: this._i18n.instant('Applet'), fa: 'fa-windows', methods: []},
{value: 'virtual_app', label: this._i18n.instant('VirtualApp'), fa: 'fa-desktop', methods: []},
];

for (const type of connectMethodTypes) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@ export class ElementContentViewComponent implements OnInit {
computeConnector(view) {
let connector;
const {connectData} = view;
if (connectData.connectMethod.component === 'tinker') {
// todo: applet 使用 web gui 的方式
connector = 'lion';
} else {
switch (connectData.connectMethod.component) {
case 'panda':
case 'tinker':
connector = 'lion';
break;
default:
connector = connectData.connectMethod.component;
}
return connector;
Expand Down

0 comments on commit 8949af4

Please sign in to comment.