This is an automated email from the ASF dual-hosted git repository.

xxyu pushed a commit to branch kylin5_beta
in repository https://gitbox.apache.org/repos/asf/kylin.git

commit a248bab5052ab1cfd74646d54d4098865a99d130
Author: Qian Xia <lauraxiaq...@gmail.com>
AuthorDate: Thu Jul 20 14:34:52 2023 +0800

    KYLIN-5657 fix model detail page size issue
---
 .../studio/StudioModel/ModelList/ModelLayout/modelLayout.vue          | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/kystudio/src/components/studio/StudioModel/ModelList/ModelLayout/modelLayout.vue
 
b/kystudio/src/components/studio/StudioModel/ModelList/ModelLayout/modelLayout.vue
index f80774ee07..4bb9f838ed 100644
--- 
a/kystudio/src/components/studio/StudioModel/ModelList/ModelLayout/modelLayout.vue
+++ 
b/kystudio/src/components/studio/StudioModel/ModelList/ModelLayout/modelLayout.vue
@@ -133,6 +133,7 @@ import { Component } from 'vue-property-decorator'
 import { mapState, mapGetters, mapActions } from 'vuex'
 import { handleError, jumpToJobs } from 'util/business'
 import { transToServerGmtTime, handleSuccessAsync } from 'util'
+import { pageRefTags, pageCount } from 'config'
 import locales from './locales'
 import ModelOverview from '../ModelOverview/ModelOverview.vue'
 import ModelSegment from '../ModelSegment/index.vue'
@@ -225,6 +226,7 @@ import ModelTitleDescription from 
'../Components/ModelTitleDescription'
   locales
 })
 export default class ModelLayout extends Vue {
+  pageRefTags = pageRefTags
   randomKey = Date.now().toString(32)
   initData = false
   currentModelRow = null
@@ -303,7 +305,7 @@ export default class ModelLayout extends Vue {
       this.showSearchResult = true
       this.loadModels({
         page_offset: modelPageOffest || 0,
-        page_size: 10,
+        page_size: +localStorage.getItem(this.pageRefTags.modelListPager) || 
pageCount,
         exact: false,
         model_name: modelName || '',
         sort_by: 'last_modify',

Reply via email to