Skip to content

Commit

Permalink
fix: 解决页面加载先后导致的分页错误问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ssongliu committed Oct 25, 2023
1 parent 084351a commit d13f7e7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion frontend/src/views/app-store/apps/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ const language = useI18n().locale.value;
const paginationConfig = reactive({
cacheSizeKey: 'app-page-size',
currentPage: 1,
pageSize: 60,
pageSize: Number(localStorage.getItem('app-page-size')) || 60,
total: 0,
});
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/app-store/installed/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ let timer: NodeJS.Timer | null = null;
const paginationConfig = reactive({
cacheSizeKey: 'app-installed-page-size',
currentPage: 1,
pageSize: 20,
pageSize: Number(localStorage.getItem('app-installed-page-size')) || 20,
total: 0,
});
const open = ref(false);
Expand Down
1 change: 1 addition & 0 deletions frontend/src/views/container/compose/detail/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ const search = async () => {
let filterItem = filters.value;
let params = {
name: '',
state: 'all',
page: paginationConfig.currentPage,
pageSize: paginationConfig.pageSize,
filters: filterItem,
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/database/mysql/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ const data = ref();
const paginationConfig = reactive({
cacheSizeKey: 'mysql-page-size',
currentPage: 1,
pageSize: 10,
pageSize: Number(localStorage.getItem('mysql-page-size')) || 10,
total: 0,
orderBy: 'created_at',
order: 'null',
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/website/website/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ let groups = ref<Group.GroupInfo[]>([]);
const paginationConfig = reactive({
cacheSizeKey: 'website-page-size',
currentPage: 1,
pageSize: 10,
pageSize: Number(localStorage.getItem('website-page-size')) || 10,
total: 0,
});
let req = reactive({
Expand Down

0 comments on commit d13f7e7

Please sign in to comment.