File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 19
19
</n-gi >
20
20
<n-gi >
21
21
<n-card bordered shadow =" always" >
22
- <n-popconfirm @positive-click =" checkAll(false)" positive-text =" 开始检查" negative-text =" 强制完成 " @negative-click =" checkAll(true)" >
22
+ <n-popconfirm @positive-click =" checkAll(false)" positive-text =" 开始检查" negative-text =" 强制开始 " @negative-click =" checkAll(true)" >
23
23
<template #trigger >
24
- <n-button type =" primary" style =" width : 100% ;" >完成设备检查 </n-button >
24
+ <n-button type =" primary" style =" width : 100% ;" >完成设备配置 </n-button >
25
25
</template >
26
- 确认完成设备检查 ?<br />
26
+ 确认完成设备配置 ?<br />
27
27
设备座位号:{{ nowSeat || '未设置' }}<br />
28
- 设备IP地址:{{ getIp() || '未获取' }}
28
+ 设备IP地址:{{ getIp() || '未获取' }}<br />
29
+ 请确认座位号与IP地址是否存在异常
29
30
</n-popconfirm >
30
31
</n-card >
31
32
<n-card bordered shadow =" always" class =" text-center" >
@@ -88,8 +89,9 @@ const checkAll = async (force = false) => {
88
89
window .$notification .success ({ title: ' 设备检查完成' , content: ` seat: ${nowSeat .value }\n ip: ${window .ip } ` , duration: 3000 });
89
90
}
90
91
await os .execCommand (` systemctl enable heartbeat.timer --now ` );
91
- await os .execCommand (` zenity --info --text "<span font='256'>${nowSeat .value }\n </span><span font='128'>${window .ip }</span>" ` );
92
- app .exit ();
92
+ window .$notification .success ({ title: ' 已成功完成配置' , content: ' 5s后程序自动关闭' , duration: 5000 });
93
+ setTimeout (() => app .exit (), 5000 );
94
+ os .execCommand (` zenity --info --text "<span font='256'>${nowSeat .value }\n </span><span font='128'>${window .ip }</span>" > /dev/null 2>&1 & ` );
93
95
};
94
96
95
97
const getIp = () => window .ip ;
Original file line number Diff line number Diff line change 31
31
"fullScreen" : false ,
32
32
"alwaysOnTop" : false ,
33
33
"icon" : " /frontend/public/vite.svg" ,
34
- "enableInspector" : true ,
34
+ "enableInspector" : false ,
35
35
"borderless" : false ,
36
36
"maximize" : false ,
37
37
"hidden" : false ,
You can’t perform that action at this time.
0 commit comments