diff --git a/welcome.html b/welcome.html
index 6964c71..04a8a2e 100644
--- a/welcome.html
+++ b/welcome.html
@@ -242,12 +242,9 @@ async function createUser() {
async function loadDevices() {
document.getElementById('sys-status').textContent = '运行中';
- // 实体中文名映射
- var names = {
- 'zone.home': '家庭区域',
- 'person.admin': '管理员',
- };
+ var names = { 'zone.home': '家庭区域', 'person.admin': '管理员' };
try {
+ if (!token) { document.getElementById('sys-status').textContent = '未登录 (无token)'; return; }
var r = await api('GET', '/api/states');
if (!r.ok) throw new Error('HTTP ' + r.status + ' ' + r.statusText);
var states = await r.json();