From 0625cf5243e712ff696708bcec5efa6a40835111 Mon Sep 17 00:00:00 2001 From: jiaziling <781011352@qq.com> Date: Sat, 14 Sep 2024 22:57:16 +0800 Subject: [PATCH] ci: change static url logo.png to cdn --- .dumi/theme/builtins/IndexFooter/index.jsx | 3 ++- .dumi/theme/builtins/IndexHeader/index.jsx | 2 +- .dumirc.ts | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.dumi/theme/builtins/IndexFooter/index.jsx b/.dumi/theme/builtins/IndexFooter/index.jsx index 5a860eb..908ef40 100644 --- a/.dumi/theme/builtins/IndexFooter/index.jsx +++ b/.dumi/theme/builtins/IndexFooter/index.jsx @@ -1,6 +1,7 @@ import { Box, Button, Stack, Typography } from '@mui/material'; import React from 'react'; import { history } from 'umi'; + export default () => { return ( { height: 100, margin: '0 auto', margin: '0 auto', - background: 'url(./logo.png) center center no-repeat', + background: 'url(https://s2.loli.net/2024/09/14/X1jv7en4szq3hwM.png) center center no-repeat', backgroundSize: '125% 125%', }} > diff --git a/.dumi/theme/builtins/IndexHeader/index.jsx b/.dumi/theme/builtins/IndexHeader/index.jsx index 4cc9d06..fe822bc 100644 --- a/.dumi/theme/builtins/IndexHeader/index.jsx +++ b/.dumi/theme/builtins/IndexHeader/index.jsx @@ -18,7 +18,7 @@ export default () => { width: 300, height: 300, margin: '0 auto', - background: 'url(./logo.png) center center no-repeat', + background: 'url(https://s2.loli.net/2024/09/14/X1jv7en4szq3hwM.png) center center no-repeat', backgroundSize: '125% 125%', }} > diff --git a/.dumirc.ts b/.dumirc.ts index b1f8225..2fec4ae 100644 --- a/.dumirc.ts +++ b/.dumirc.ts @@ -2,7 +2,7 @@ import { defineConfig } from 'dumi'; const isDev = process.env.NODE_ENV === 'development'; export const basePath = isDev ? '/' : '/XForm/'; -const logoPath = `${basePath}logo.png`; +export const logoPath = `${basePath}logo.png`; export default defineConfig({ base: basePath,