修复用户指引bug
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user