Skip to content

Commit

Permalink
Merge pull request #444 from meetqy/438-electronwindows-静态资源服务路径错误
Browse files Browse the repository at this point in the history
fix: 【Electron】windows 静态资源服务路径错误
  • Loading branch information
meetqy authored Oct 6, 2023
2 parents de39117 + ab8208b commit 9a7566c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion themes/gallery/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ function Home() {
>
{pages?.map((page) => {
const photos = page.data?.map((image) => {
const id = image.path.split("/").slice(-2)[0];
const reg = image.path.match(/[0-9a-zA-Z]+\.info/);
const id = reg ? reg[0] : "";
const host = `http://${config?.ip}:${config?.serverPort}`;
const src = `${host}/static/${id}/${image.name}.${image.ext}`;
const thumbnailPath = image.noThumbnail
Expand Down

0 comments on commit 9a7566c

Please sign in to comment.