Skip to content

Commit

Permalink
fix:宁盾问题
Browse files Browse the repository at this point in the history
  • Loading branch information
dongfengtao committed May 31, 2024
1 parent 2e43773 commit d05d18f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/guard-core-v4/example.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import { React, render } from 'shim-react'
import * as facePlugin from 'face-api.js'

const App = () => {
const appId = '6656a5bd1c717a6e69dbd7c7'
const appId = '66597b356e1814f7884e91ff'
// const deviceId = '6486be0f60e50cb92678a468' //如要使用必须使用开启元数据对的 用户池 测试

const config: Partial<GuardLocalConfig> = {
// mode: GuardMode.Modal,
// lang: 'en-US',
host: 'https://testningdun.authing.cn'
host: 'https://fbiu9ntj57vw-demo.sy2.authing-inc.co'
}

const onLogin = (userInfo: User) => {
Expand Down
3 changes: 3 additions & 0 deletions packages/guard-core-v4/src/Guard/core/renderModule.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ export const RenderModule: React.FC<{

const nextData = res.data

console.log(nextData, 'nextDatanextData dft')

changeModule(nextModule, nextData)
return CodeAction.CHANGE_MODULE
},
Expand Down Expand Up @@ -327,6 +329,7 @@ export const RenderModule: React.FC<{
: 'authing-g2-render-module-normal'
}`}
>
<>11</>
{renderGuardContent}
</div>
)}
Expand Down

0 comments on commit d05d18f

Please sign in to comment.