code: update some url

This commit is contained in:
ShawnPhang 2024-08-16 12:11:35 +08:00
parent 1b704ee1d2
commit 35755548ec
2 changed files with 4 additions and 2 deletions

View File

@ -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)
})

View File

@ -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) => {