31 lines
789 B
TypeScript
31 lines
789 B
TypeScript
import HomeIndex from '@/components/HomeIndex'
|
|
import { useEffect } from 'react'
|
|
import { getBaseInfo, initMinio } from '@/api/oss/minio'
|
|
import { Button } from 'antd'
|
|
|
|
export default () => {
|
|
const minioInit = () => {
|
|
initMinio('1').then(() => {
|
|
getBaseInfo('wallhaven-1pd98v.jpg').then((res) => {
|
|
console.log(res)
|
|
})
|
|
})
|
|
}
|
|
const init = () => {
|
|
initMinio('2').then(() => {
|
|
getBaseInfo('background.png').then((res) => {
|
|
console.log(res)
|
|
})
|
|
})
|
|
}
|
|
|
|
useEffect(() => {}, [])
|
|
return (
|
|
<div>
|
|
<HomeIndex />
|
|
<Button onClick={minioInit}>测试一</Button>
|
|
<Button onClick={init}>测试二</Button>
|
|
</div>
|
|
)
|
|
}
|