This commit is contained in:
ditiqi 2025-01-26 21:56:06 +08:00
commit f71e48a627
3 changed files with 3 additions and 2 deletions

View File

@ -15,7 +15,6 @@ import { SessionInfo, SessionService } from './session.service';
import { tokenConfig } from './config';
import { z } from 'zod';
import { FileAuthResult, FileRequest, FileValidationErrorType } from './types';
import { TusService } from '@server/upload/tus.service';
import { extractFileIdFromNginxUrl } from '@server/upload/utils';
@Injectable()
export class AuthService {

View File

@ -33,7 +33,6 @@ export const Header = memo(function Header() {
<Button size="large" onClick={() => {
navigate("/auth")
}} type="primary" icon={<UserOutlined></UserOutlined>}>
</Button>
) : (

View File

@ -47,6 +47,9 @@ export default function PostResources({ post }: { post: PostDto }) {
<div className="relative aspect-square rounded-lg overflow-hidden shadow-md hover:shadow-lg transition-shadow duration-300 bg-gray-100">
<div className="w-full h-full">
<Image
onError={(e) => {
console.log(e)
}}
src={resource.url}
alt={resource.title}
preview={{