修复用户指引bug

This commit is contained in:
X1627315083
2023-12-20 17:03:42 +08:00
parent 6297b75d68
commit 5674df060f
18 changed files with 144 additions and 48 deletions

View File

@@ -270,8 +270,14 @@ export default defineComponent({
this.store.commit("addGenerateMaterialFils", imgData);
},
//选择所有的图片
getLibraryList(str:any){
let workspace = this.store.state.Workspace.workspace
async getLibraryList(str:any){
let workspace = JSON.parse(JSON.stringify(this.store.state.Workspace.workspace))
if(this.searchPictureName != this.isOldSearchPictureName || this.workspace?.sex != workspace.sex){
this.imgList = []
this.currentPage = 1
}else{
}
if(str == 'di'){
this.currentPage = this.imgList?.[0]?.id != undefined?this.imgList?.length / this.pageSize+1:1
}
@@ -287,7 +293,7 @@ export default defineComponent({
}
this.isShowLoading = true
Https.axiosPost(Https.httpUrls.queryLibraryPage,data).then(
await Https.axiosPost(Https.httpUrls.queryLibraryPage,data).then(
(rv: any) => {
this.total = rv.total
let aa:any = []
@@ -318,15 +324,13 @@ export default defineComponent({
}
aa.push(item)
});
if(this.searchPictureName != this.isOldSearchPictureName){
this.imgList = []
}else{
}
this.isOldSearchPictureName = this.searchPictureName
if((aa[aa.length-1].id == this.imgList[this.imgList.length-1]?.id) && aa?.[aa.length-1]?.id){
}else{
this.imgList.push(...aa)
}
this.workspace = workspace
// this.imgList = aa
this.isShowLoading = false
}