Commit 9136dfd9 authored by 徐乐's avatar 徐乐

feat: 新增跳转第三方链接功能

parent 402d6c0c
Pipeline #83504 waiting for manual action with stages
import React, { useEffect, useState } from 'react';
const JumpThirdLink = props => {
let linkUrl = props.params.linkUrl || '';
console.log('linkUrl', linkUrl)
useEffect(() => {
if (linkUrl) {
console.log('linkUrl', linkUrl)
window.open(linkUrl, '_blank');
}
}, []);
return (
<div></div>
);
};
export default JumpThirdLink;
......@@ -13,6 +13,7 @@ import Login from '../pages/user/login';
import NoSecret from '../pages/user/login/noSecret';
import Notifications from '../pages/system/notifications';
import TabIframe from '../pages/system/iframe/TabWidget';
import JumpThirdLink from '../pages/system/iframe/JumpThirdLink';
import IntegratedLogin from '../pages/system/iframe/IntegratedLogin';
import PrevieView from '../pages/system/previews/preview';
......@@ -95,6 +96,9 @@ export const dyRoutes = (routes, layout, theme) => {
path: '/',
render: ({ routeConfig }) => {
const { path } = routeConfig || {};
if (/system\/iframe\/JumpThirdLink/.test(path)) {
return <JumpThirdLink {...routeConfig} />;
}
if (/system\/iframe\/tabWidget/.test(path)) {
return <TabIframe {...routeConfig} />;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment