提交 36eb13cd authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 b45b64ea
VITE_LOGIN_URL=http://172.16.3.203:1004/auth/login/index
VITE_LOGIN_URL=http://172.16.3.203:1007/auth/login/index
VITE_LAB_URL=http://172.16.3.203:1012/bi/?proc=0&action=index
VITE_SURVEYKING_URL=http://172.16.3.203:1011
VITE_STATIC_URL=https://saas-lab-api
......@@ -50,8 +50,13 @@ window.chuangkitComplete = async result => {
}
if (result.kind == 2) {
for (const url of result['source-urls']) {
const uploadedURL = await uploadFileByUrl(url)
model.value = uploadedURL
model.value = url
try {
const uploadedURL = await uploadFileByUrl(url)
model.value = uploadedURL
} catch (error) {
console.log(error)
}
}
}
if ([1, 2, 3].includes(result.kind)) {
......
......@@ -22,7 +22,12 @@ onMounted(fetchList)
async function handleClick(item) {
active.value = item.designId
model.value = await uploadFileByUrl(item.thumbUrl)
model.value = item.thumbUrl
try {
model.value = await uploadFileByUrl(item.thumbUrl)
} catch (error) {
console.log(error)
}
}
function onClose() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论