Browse Source

MicroApp mirrorId

release_1.3.0
巴林闲侠 3 years ago
parent
commit
eb1a31bf2d
  1. 5
      code/VideoAccess-VCMP/web/client/src/layout/index.jsx

5
code/VideoAccess-VCMP/web/client/src/layout/index.jsx

@ -172,11 +172,12 @@ const Root = props => {
// MicroApp // MicroApp
const microAppListen = async (data) => { const microAppListen = async (data) => {
console.log('xxxx', data);
if (data.action == 'initMicro') { if (data.action == 'initMicro') {
await store.dispatch(actions.auth.initAuth({ await store.dispatch(actions.auth.initAuth({
authorized: true, authorized: true,
token: data.data.token, // token: data.data.token,
// mirrorId: data.data.mirrorId
...(data.data || {})
})) }))
// await store.dispatch(push('/noMatch')); // await store.dispatch(push('/noMatch'));
setMicroAppWaiting(false) setMicroAppWaiting(false)

Loading…
Cancel
Save