Skip to content

Commit

Permalink
chore: 更新部署配置和上传组件
Browse files Browse the repository at this point in the history
修改了部署配置文件和上传组件中的图片引用
  • Loading branch information
alanhe421 committed Dec 1, 2024
1 parent 19863d0 commit 15ba79c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
run: |
npm run build
env:
REACT_APP_PUBLIC_URL: /whisper-web
PUBLIC_URL: /whisper-web
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
Expand Down
3 changes: 2 additions & 1 deletion src/components/Upload.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { useRef, useState } from 'react';
import logo from '../logo.png';

function Upload() {
const [file, setFile] = useState(null);
Expand Down Expand Up @@ -167,7 +168,7 @@ function Upload() {

<div className="space-y-4">
<div className="flex justify-center items-center mb-6">
<img src={'/logo.png'} alt={''} className="w-32 h-32 object-contain opacity-90"/>
<img src={logo} alt={''} className="w-32 h-32 object-contain opacity-90"/>
</div>
{file ? (
<>
Expand Down
File renamed without changes
1 change: 0 additions & 1 deletion src/logo.svg

This file was deleted.

0 comments on commit 15ba79c

Please sign in to comment.