Skip to content

Commit 756a84f

Browse files
committed
machine-setup: fix
1 parent 96b86c3 commit 756a84f

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

packages/machine-setup/frontend/src/components/BasicInfo.vue

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@
1919
</n-gi>
2020
<n-gi>
2121
<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)">
2323
<template #trigger>
24-
<n-button type="primary" style="width: 100%;">完成设备检查</n-button>
24+
<n-button type="primary" style="width: 100%;">完成设备配置</n-button>
2525
</template>
26-
确认完成设备检查?<br />
26+
确认完成设备配置?<br />
2727
设备座位号:{{ nowSeat || '未设置' }}<br />
28-
设备IP地址:{{ getIp() || '未获取' }}
28+
设备IP地址:{{ getIp() || '未获取' }}<br />
29+
请确认座位号与IP地址是否存在异常
2930
</n-popconfirm>
3031
</n-card>
3132
<n-card bordered shadow="always" class="text-center">
@@ -88,8 +89,9 @@ const checkAll = async (force = false) => {
8889
window.$notification.success({ title: '设备检查完成', content: `seat: ${nowSeat.value}\nip: ${window.ip}`, duration: 3000 });
8990
}
9091
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 &`);
9395
};
9496
9597
const getIp = () => window.ip;

packages/machine-setup/neutralino.config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"fullScreen": false,
3232
"alwaysOnTop": false,
3333
"icon": "/frontend/public/vite.svg",
34-
"enableInspector": true,
34+
"enableInspector": false,
3535
"borderless": false,
3636
"maximize": false,
3737
"hidden": false,

0 commit comments

Comments
 (0)