|
@@ -47,13 +47,28 @@ export function useRemoteAppChecker() {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
- const hasSun = nodeCheckRemoteDesktop();
|
|
|
|
- if (hasSun) {
|
|
|
|
- if (applicationNames) {
|
|
|
|
- applicationNames += ",sunloginclient";
|
|
|
|
- } else {
|
|
|
|
- applicationNames = "sunloginclient";
|
|
|
|
|
|
+ try {
|
|
|
|
+ const hasSun = nodeCheckRemoteDesktop();
|
|
|
|
+ if (hasSun) {
|
|
|
|
+ if (applicationNames) {
|
|
|
|
+ applicationNames += ",sunloginclient";
|
|
|
|
+ } else {
|
|
|
|
+ applicationNames = "sunloginclient";
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
+ } catch (error) {
|
|
|
|
+ logger({
|
|
|
|
+ cnl: ["local", "server"],
|
|
|
|
+ key: "nodeCheckRemoteDesktop",
|
|
|
|
+ pgu: "AUTO",
|
|
|
|
+ stk: error instanceof Error ? error.message : JSON.stringify(error),
|
|
|
|
+ dtl: "读取tasklist出错",
|
|
|
|
+ ext: { errorType: "e-01", applicationNames },
|
|
|
|
+ });
|
|
|
|
+ $message.error("系统检测出错(e-01),请退出程序后重试!", {
|
|
|
|
+ duration: 24 * 60 * 60 * 1000,
|
|
|
|
+ });
|
|
|
|
+ return;
|
|
}
|
|
}
|
|
if (!applicationNames?.trim()) {
|
|
if (!applicationNames?.trim()) {
|
|
disableLoginBtnBecauseRemoteApp = false;
|
|
disableLoginBtnBecauseRemoteApp = false;
|