Feat(云灵AI):界面细节调整

This commit is contained in:
lifizer
2025-04-06 15:11:20 +08:00
parent de473eba57
commit 230e163c53
3 changed files with 30 additions and 2 deletions
+6 -1
View File
@@ -218,6 +218,7 @@ export default {
if (tempFilePath && fileSize && duration) {
_this.taskId = ''
_this.clearIntervalFn()
uni.showLoading({ title: '识别中...' })
uni.uploadFile({
url: `${VUE_APP_API_URL}/api/upload`,
filePath: tempFilePath,
@@ -231,6 +232,7 @@ export default {
},
fail: err => {
console.log(err)
uni.hideLoading()
}
})
}
@@ -246,11 +248,12 @@ export default {
}).then(taskRes => {
_this.taskId = taskRes.data
_this.getTransResultReq()
}).catch(() => {
uni.hideLoading()
})
},
getTransResultReq() {
const _this = this
uni.showLoading({ title: '识别中...' })
_this.taskTimer = setInterval(() => {
getFileTransResult({
taskId: _this.taskId
@@ -270,6 +273,8 @@ export default {
}
}
}
}).catch(() => {
uni.hideLoading()
})
}, 1000)
},