wjx 1 month ago
parent
commit
b364f48006
3 changed files with 15 additions and 0 deletions
  1. 4 0
      config/routes.ts
  2. 10 0
      src/app.tsx
  3. 1 0
      src/assets/icons/iaaData.svg

+ 4 - 0
config/routes.ts

@@ -174,6 +174,10 @@ export default [
     path: '/adLaunch',
     name: '投放系统'
   },
+  {
+    path: '/iaaData',
+    name: 'IAA数据系统'
+  },
   {
     path: '*',
     layout: false,

+ 10 - 0
src/app.tsx

@@ -28,6 +28,7 @@ import { ReactComponent as NovelDataSystemSvg } from '@/assets/icons/novelDataSy
 import { ReactComponent as CorpChatSvg } from '@/assets/icons/corpChat.svg'
 import { ReactComponent as WeChatSvg } from '@/assets/icons/weChat.svg'
 import { ReactComponent as AdLaunchsSvg } from '@/assets/icons/adLaunchs.svg'
+import { ReactComponent as IaaDataSvg } from '@/assets/icons/iaaData.svg'
 import { ConfigProvider, Watermark } from 'antd';
 const isDev = process.env.NODE_ENV === 'development';
 const loginPath = '/user/login';
@@ -207,6 +208,11 @@ export const layout: RunTimeLayoutConfig = ({ initialState, setInitialState }) =
                 name: '投放系统',
                 icon: <AdLaunchsSvg />
               },
+              {
+                path: '/iaaData',
+                name: 'IAA数据系统',
+                icon: <IaaDataSvg />
+              },
             ]
             setInitialState(s => ({ ...s, menu: menuData?.data }))
             return menu;
@@ -237,6 +243,10 @@ export const layout: RunTimeLayoutConfig = ({ initialState, setInitialState }) =
         window.open(`https://adq.zanxiangnet.com/#/user/login?token=${localStorage.getItem('Admin-Token')}`, '_blank')
         history.back() // 返回上一页
         return
+      } else if (location?.pathname === '/iaaData') {
+        window.open(`https://iaadata.84game.cn/#/user/login?token=${localStorage.getItem('Admin-Token')}`, '_blank')
+        history.back() // 返回上一页
+        return
       }
       // 如果没有登录,重定向到 login
       if (location?.pathname !== loginPath && !localStorage.getItem('Admin-Token')) {

+ 1 - 0
src/assets/icons/iaaData.svg

@@ -0,0 +1 @@
+<svg viewBox="64 64 896 896" focusable="false" data-icon="fund-view" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M735.8976 930.7136H284.672c-113.1008 0-204.8-91.6992-204.8-204.8V278.3744c0-113.1008 91.6992-204.8 204.8-204.8h451.2256c113.1008 0 204.8 91.6992 204.8 204.8v447.5392c0 113.1008-91.6992 204.8-204.8 204.8z" fill="#aaaaf8" p-id="38868"></path><path d="M260.4544 654.592c-10.0864 0-20.224-3.9424-27.7504-11.8272-14.6944-15.3088-14.1312-39.6288 1.1776-54.272l180.48-172.8c19.2512-18.432 50.2272-18.0736 69.0688 0.8704l105.7792 106.4448 144.128-141.8752c15.104-14.8992 39.424-14.6944 54.3232 0.4096s14.6944 39.424-0.4096 54.3232l-163.584 161.0752c-19.2512 18.9952-50.432 18.8416-69.5296-0.3584L448 489.7792l-160.9728 154.1632a38.35392 38.35392 0 0 1-26.5728 10.6496z m309.2992-112.4352c-0.0512 0-0.0512 0 0 0z" fill="#FFCD43" p-id="38869"></path></svg>