wjx 1 hónapja
szülő
commit
37d1b015cb
3 módosított fájl, 16 hozzáadás és 0 törlés
  1. 4 0
      config/routes.ts
  2. 11 0
      src/app.tsx
  3. 1 0
      src/assets/icons/externalMaterial.svg

+ 4 - 0
config/routes.ts

@@ -178,6 +178,10 @@ export default [
     path: '/iaaData',
     name: 'IAA数据系统'
   },
+  {
+    path: '/exteriorMedia',
+    name: '外部素材'
+  },
   {
     path: '*',
     layout: false,

+ 11 - 0
src/app.tsx

@@ -29,6 +29,7 @@ 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 { ReactComponent as ExternalMaterialSvg } from '@/assets/icons/externalMaterial.svg'
 import { ConfigProvider, Watermark } from 'antd';
 const isDev = process.env.NODE_ENV === 'development';
 const loginPath = '/user/login';
@@ -213,6 +214,11 @@ export const layout: RunTimeLayoutConfig = ({ initialState, setInitialState }) =
                 name: 'IAA数据系统',
                 icon: <IaaDataSvg />
               },
+              {
+                path: '/exteriorMedia',
+                name: '外部素材',
+                icon: <ExternalMaterialSvg />
+              },
             ]
             setInitialState(s => ({ ...s, menu: menuData?.data }))
             return menu;
@@ -247,6 +253,11 @@ export const layout: RunTimeLayoutConfig = ({ initialState, setInitialState }) =
         window.open(`https://iaadata.84game.cn/#/user/login?token=${localStorage.getItem('Admin-Token')}`, '_blank')
         history.back() // 返回上一页
         return
+      } else if (location?.pathname === '/exteriorMedia') { // 外部素材
+        // window.open(`https://mp.zanxiangnet.com/#/user/login?token=${encodeURIComponent(localStorage.getItem('Admin-Token') as string)}&redirect=${encodeURIComponent('/#/exteriorMedia/reyun')}`, '_blank')
+        window.open(`https://mp.zanxiangnet.com/#/user/login?token=${localStorage.getItem('Admin-Token')}&redirect=${encodeURIComponent('/#/exteriorMedia/reyun')}`, '_blank')
+        history.back() // 返回上一页
+        return
       }
       // 如果没有登录,重定向到 login
       if (location?.pathname !== loginPath && !localStorage.getItem('Admin-Token')) {

+ 1 - 0
src/assets/icons/externalMaterial.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="M213.48 64.22h597.04c99.5 0 149.26 49.75 149.26 149.26v597.04c0 99.5-49.75 149.26-149.26 149.26H213.48c-99.51 0-149.26-49.75-149.26-149.26V213.48c0-99.5 49.76-149.26 149.26-149.26z m0 0" fill="#4E6EF2" p-id="28675"></path><path d="M716.95 365.59H545.2L490.63 311H327.65c-10.66 0-19.46 8.77-19.46 19.46v342.73c0.04 10.73 8.73 19.42 19.46 19.46h389.3c10.66 0 19.46-8.77 19.46-19.46V385.05c0-10.68-8.77-19.46-19.46-19.46z" fill="#FFFFFF" p-id="28676"></path><path d="M599.34 523.54c0-10.57 6.5-20.06 16.37-23.87a96.02 96.02 0 0 0-10.48-25.31 25.563 25.563 0 0 1-28.51-5.25 25.54 25.54 0 0 1-5.23-28.51 96.352 96.352 0 0 0-25.3-10.45 25.593 25.593 0 0 1-23.88 16.45c-10.6-0.01-20.1-6.55-23.88-16.45a95.748 95.748 0 0 0-25.28 10.45 25.55 25.55 0 0 1-5.27 28.5c-7.49 7.49-18.83 9.59-28.5 5.26-4.65 7.81-8.17 16.3-10.48 25.31a25.613 25.613 0 0 1 16.48 23.86c0 10.94-6.86 20.18-16.48 23.88 2.3 9 5.85 17.49 10.48 25.28a25.557 25.557 0 0 1 28.53 5.25c7.49 7.51 9.57 18.87 5.21 28.54 7.81 4.63 16.3 8.18 25.3 10.45a25.617 25.617 0 0 1 23.88-16.46c10.92 0 20.18 6.86 23.88 16.46a95.049 95.049 0 0 0 25.28-10.45 25.559 25.559 0 0 1 5.24-28.5c7.48-7.5 18.82-9.6 28.49-5.29 4.66-7.79 8.2-16.28 10.51-25.28a25.591 25.591 0 0 1-16.36-23.87z m-75.51 41.65c-22.15 0-40.1-17.95-40.1-40.11 0-22.15 17.95-40.1 40.1-40.1s40.11 17.96 40.11 40.1c-0.01 22.15-17.96 40.11-40.11 40.11z" fill="#B9C8F9" p-id="28677"></path></svg>