Merge branch 'main' of http://113.45.157.195:3003/insiinc/leader-mail
This commit is contained in:
commit
f71e48a627
|
@ -15,7 +15,6 @@ import { SessionInfo, SessionService } from './session.service';
|
||||||
import { tokenConfig } from './config';
|
import { tokenConfig } from './config';
|
||||||
import { z } from 'zod';
|
import { z } from 'zod';
|
||||||
import { FileAuthResult, FileRequest, FileValidationErrorType } from './types';
|
import { FileAuthResult, FileRequest, FileValidationErrorType } from './types';
|
||||||
import { TusService } from '@server/upload/tus.service';
|
|
||||||
import { extractFileIdFromNginxUrl } from '@server/upload/utils';
|
import { extractFileIdFromNginxUrl } from '@server/upload/utils';
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class AuthService {
|
export class AuthService {
|
||||||
|
|
|
@ -33,7 +33,6 @@ export const Header = memo(function Header() {
|
||||||
<Button size="large" onClick={() => {
|
<Button size="large" onClick={() => {
|
||||||
navigate("/auth")
|
navigate("/auth")
|
||||||
}} type="primary" icon={<UserOutlined></UserOutlined>}>
|
}} type="primary" icon={<UserOutlined></UserOutlined>}>
|
||||||
|
|
||||||
登录
|
登录
|
||||||
</Button>
|
</Button>
|
||||||
) : (
|
) : (
|
||||||
|
|
|
@ -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="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">
|
<div className="w-full h-full">
|
||||||
<Image
|
<Image
|
||||||
|
onError={(e) => {
|
||||||
|
console.log(e)
|
||||||
|
}}
|
||||||
src={resource.url}
|
src={resource.url}
|
||||||
alt={resource.title}
|
alt={resource.title}
|
||||||
preview={{
|
preview={{
|
||||||
|
|
Loading…
Reference in New Issue