feat: add path navigation and shared settings transitions

This commit is contained in:
lezi-fun committed 2026-08-13 12:29:09 +08:00
1 parent caad17d195
commit 84c9e97451
25 files changed
+689 -151

No files matched your search

+2 -2
View File
@@ -142,13 +142,13 @@ test('统计接口', async () => {
assert.ok(typeof data.users === 'number');
});
test('记录事件日志', async () => {
test('客户端不能伪造事件日志', async () => {
const { status } = await api('/event-logs', {
method: 'POST',
headers: { Authorization: `Bearer ${adminToken}` },
body: JSON.stringify({ action: 'test_action' }),
});
assert.equal(status, 200);
assert.equal(status, 405);
});
test('管理员查看事件日志', async () => {