fix: 修复实体列表刷新后页码重置为1的问题

This commit is contained in:
刘洪洪
2023-09-06 14:10:54 +08:00
parent b83b51e792
commit 385abbfe98
2 changed files with 36 additions and 29 deletions

View File

@@ -454,8 +454,11 @@ export default {
const errorList = parser.validateMeta(this.metaList)
if (_.isEmpty(errorList)) {
const strObj = handleMetaListToStr(this.metaList)
const key = handleEntityTypeByStr(strObj.str)
this.$emit('search', { ...parser.parseStr(key), str: strObj.str2 })
const str = strObj.str ? strObj.str : strObj
const str2 = strObj.str2 ? strObj.str2 : strObj
// str为将metaList转成字符串的值str2为地址栏展示的值
const key = handleEntityTypeByStr(str)
this.$emit('search', { ...parser.parseStr(key), str: str2 })
} else {
this.$message.error(handleErrorTip(errorList[0]))
}