mirror of
https://github.com/palxiao/poster-design.git
synced 2025-07-28 04:10:31 +08:00
code: update some url
This commit is contained in:
parent
1b704ee1d2
commit
35755548ec
@ -106,7 +106,8 @@ const handleUploaderLoad = (file: File) => {
|
||||
selectImageFile(state as TImageCutoutState, raw, file, (result, name) => {
|
||||
fileName = name
|
||||
// TODO: 模拟演示
|
||||
const resultImage = 'https://pic.imgdb.cn/item/6522253ec458853aefb0b013.webp' // URL.createObjectURL(result)
|
||||
// const resultImage = 'https://pic.imgdb.cn/item/6522253ec458853aefb0b013.webp' // URL.createObjectURL(result)
|
||||
const resultImage = 'https://s2.loli.net/2024/08/16/fSxD9wlpiu3IKJv.png'
|
||||
state.rawImage && (state.cutImage = resultImage)
|
||||
requestAnimationFrame(run)
|
||||
})
|
||||
|
@ -26,7 +26,8 @@ export const selectImageFile = async (state: TImageCutoutState, raw: Ref<HTMLEle
|
||||
state.offsetWidth = (raw.value as HTMLElement).offsetWidth
|
||||
})
|
||||
// TODO: 模拟演示
|
||||
state.rawImage = 'https://pic.imgdb.cn/item/65222530c458853aefb0adeb.webp' // URL.createObjectURL(file)
|
||||
// state.rawImage = 'https://pic.imgdb.cn/item/66be4c1ed9c307b7e9f00b16.jpg' // URL.createObjectURL(file)
|
||||
state.rawImage = 'https://s2.loli.net/2024/08/16/45aIdYbhgSefEoc.jpg'
|
||||
|
||||
// 返回抠图结果
|
||||
// const result = await api.ai.upload(file, (up: number, dp: number) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user