mirror of
https://github.com/certd/certd.git
synced 2026-05-15 12:37:30 +08:00
fix: 修复群晖授权没有显示设备id输入框的bug
This commit is contained in:
@@ -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:{
|
||||
|
||||
Reference in New Issue
Block a user