fix: 修复群晖授权没有显示设备id输入框的bug

This commit is contained in:
xiaojunnuo
2026-05-14 18:42:35 +08:00
parent 9076c8b20e
commit 2f172b56e9
3 changed files with 5 additions and 3 deletions
@@ -13,8 +13,9 @@ export function useReference(formItem: any) {
const ctx = {
compute: (opts: any) => {
const func = (context: any) => {
debugger;
let form = context.form || {};
form = form.input || form.body || form.access || form;
form = form.input || form.body || form;
return opts({
...context,
form,
@@ -245,8 +245,7 @@ export class LoginService {
async loginByOpenId(req: { openId: string, type:string }) {
const {openId, type} = req;
const oauthBound = await this.oauthBoundService.findOne({
where:{openId, type: type.replace(':', '')')}
});
where:{openId, type: type.replace(':', '')}
});
if (oauthBound == null) {
return null
@@ -63,6 +63,7 @@ export class SynologyAccess extends BaseAccess {
name: "a-switch",
vModel: "checked",
},
col:{span:24},
helper: "是否启用了双重认证",
required: true,
})
@@ -76,6 +77,7 @@ export class SynologyAccess extends BaseAccess {
type: "access",
typeName: "synology",
},
col:{span:24},
mergeScript: `
return {
component:{