mirror of
https://github.com/certd/certd.git
synced 2026-05-18 14:27:36 +08:00
fix: 修复群晖授权没有显示设备id输入框的bug
This commit is contained in:
@@ -13,8 +13,9 @@ export function useReference(formItem: any) {
|
|||||||
const ctx = {
|
const ctx = {
|
||||||
compute: (opts: any) => {
|
compute: (opts: any) => {
|
||||||
const func = (context: any) => {
|
const func = (context: any) => {
|
||||||
|
debugger;
|
||||||
let form = context.form || {};
|
let form = context.form || {};
|
||||||
form = form.input || form.body || form.access || form;
|
form = form.input || form.body || form;
|
||||||
return opts({
|
return opts({
|
||||||
...context,
|
...context,
|
||||||
form,
|
form,
|
||||||
|
|||||||
@@ -245,8 +245,7 @@ export class LoginService {
|
|||||||
async loginByOpenId(req: { openId: string, type:string }) {
|
async loginByOpenId(req: { openId: string, type:string }) {
|
||||||
const {openId, type} = req;
|
const {openId, type} = req;
|
||||||
const oauthBound = await this.oauthBoundService.findOne({
|
const oauthBound = await this.oauthBoundService.findOne({
|
||||||
where:{openId, type: type.replace(':', '')')}
|
where:{openId, type: type.replace(':', '')}
|
||||||
});
|
|
||||||
});
|
});
|
||||||
if (oauthBound == null) {
|
if (oauthBound == null) {
|
||||||
return null
|
return null
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ export class SynologyAccess extends BaseAccess {
|
|||||||
name: "a-switch",
|
name: "a-switch",
|
||||||
vModel: "checked",
|
vModel: "checked",
|
||||||
},
|
},
|
||||||
|
col:{span:24},
|
||||||
helper: "是否启用了双重认证",
|
helper: "是否启用了双重认证",
|
||||||
required: true,
|
required: true,
|
||||||
})
|
})
|
||||||
@@ -76,6 +77,7 @@ export class SynologyAccess extends BaseAccess {
|
|||||||
type: "access",
|
type: "access",
|
||||||
typeName: "synology",
|
typeName: "synology",
|
||||||
},
|
},
|
||||||
|
col:{span:24},
|
||||||
mergeScript: `
|
mergeScript: `
|
||||||
return {
|
return {
|
||||||
component:{
|
component:{
|
||||||
|
|||||||
Reference in New Issue
Block a user