commit
This commit is contained in:
@@ -28,20 +28,24 @@ export default {
|
||||
this.$emit('pageChange', page)
|
||||
},
|
||||
pageSizeChange (pageSize) {
|
||||
if (this.getTypeFlag === 'CloudRepository') {
|
||||
this.userInfo.configContent = pageSize
|
||||
this.setUserInfo(JSON.stringify(JSON.parse(JSON.stringify(this.userInfo))))
|
||||
this.$emit('pageSizeChange', pageSize)
|
||||
} else {
|
||||
this.pageConfig(pageSize).then((res) => {
|
||||
if (res.ok) {
|
||||
this.userInfo.configContent = pageSize
|
||||
this.setUserInfo(JSON.stringify(JSON.parse(JSON.stringify(this.userInfo))))
|
||||
this.$emit('pageSizeChange', pageSize)
|
||||
}
|
||||
}, e => {
|
||||
})
|
||||
}
|
||||
this.userInfo.configContent = pageSize
|
||||
this.setUserInfo(JSON.stringify(JSON.parse(JSON.stringify(this.userInfo))))
|
||||
this.$emit('pageSizeChange', pageSize)
|
||||
|
||||
// if (this.getTypeFlag === 'CloudRepository') {
|
||||
// this.userInfo.configContent = pageSize
|
||||
// this.setUserInfo(JSON.stringify(JSON.parse(JSON.stringify(this.userInfo))))
|
||||
// this.$emit('pageSizeChange', pageSize)
|
||||
// } else {
|
||||
// this.pageConfig(pageSize).then((res) => {
|
||||
// if (res.ok) {
|
||||
// this.userInfo.configContent = pageSize
|
||||
// this.setUserInfo(JSON.stringify(JSON.parse(JSON.stringify(this.userInfo))))
|
||||
// this.$emit('pageSizeChange', pageSize)
|
||||
// }
|
||||
// }, e => {
|
||||
// })
|
||||
// }
|
||||
},
|
||||
/**
|
||||
* @description: 每页条数配置
|
||||
|
||||
Reference in New Issue
Block a user