mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
系统设置中自定义UI的支持
This commit is contained in:
1 parent
11368bc831
commit
1722fbfaca
21 files changed
+284
-140
No files matched your search
@@ -44,7 +44,7 @@ export async function run({ username = '', password = '' } = {}) {
|
||||
await Promise.all(tasks);
|
||||
await domain.add('system', 0, 'Hydro', true);
|
||||
if (username && password) {
|
||||
const udoc = await user.getById('system', -1, false);
|
||||
const udoc = await user.getById('system', -1);
|
||||
if (!udoc) {
|
||||
await user.create({
|
||||
uid: -1,
|
||||
|
||||
Reference in new issue
Block a user