LaiTool V3.1.2
This commit is contained in:
@@ -230,10 +230,17 @@ export const useReverseManageStore = defineStore('reverseManage', {
|
||||
*/
|
||||
async GetBookTaskDetail(bookTaskId: string, modifyProperty = null): Promise<GeneralResponse.ErrorItem | GeneralResponse.SuccessItem> {
|
||||
try {
|
||||
debugger
|
||||
//@ts-ignore
|
||||
let detailRes = await window.book.GetBookTaskDetail(bookTaskId)
|
||||
let bookTaskDetail = []
|
||||
if (detailRes.code == 1) {
|
||||
bookTaskDetail = detailRes.data.map(item => {
|
||||
return {
|
||||
...item,
|
||||
outImagePath: item.outImagePath ? item.outImagePath + '?t=' + new Date().getTime() : undefined,
|
||||
subImagePath: item.subImagePath ? item.subImagePath.map(item => item + '?t=' + new Date().getTime()) : []
|
||||
}
|
||||
})
|
||||
// 这边开始修改数据,
|
||||
if (this.selectBookTaskDetail && this.selectBookTaskDetail.length > 0) {
|
||||
this.selectBookTaskDetail.splice(0, this.selectBookTaskDetail.length, ...detailRes.data);
|
||||
@@ -243,7 +250,7 @@ export const useReverseManageStore = defineStore('reverseManage', {
|
||||
} else {
|
||||
return errorMessage(detailRes.message)
|
||||
}
|
||||
return successMessage(detailRes.data)
|
||||
return successMessage(bookTaskDetail)
|
||||
} catch (error) {
|
||||
return errorMessage("获取小说任务详细数据失败,失败信息如下: " + error.toString())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user