|
@@ -99,12 +99,12 @@
|
|
<script>
|
|
<script>
|
|
// 获取当前页面的 URL 参数
|
|
// 获取当前页面的 URL 参数
|
|
// const params = new URLSearchParams(window.location.search);
|
|
// const params = new URLSearchParams(window.location.search);
|
|
- const url = window.location.search
|
|
|
|
|
|
+ const url = window.location.href
|
|
const match = url.match(/pageList\/(\d+)/);
|
|
const match = url.match(/pageList\/(\d+)/);
|
|
const number = match ? match[1] : null;
|
|
const number = match ? match[1] : null;
|
|
const pageIndex = +number || 1
|
|
const pageIndex = +number || 1
|
|
const pageSize = 10
|
|
const pageSize = 10
|
|
- console.log(number, '<==== number)
|
|
|
|
|
|
+ console.log(number, '<==== number')
|
|
// const pageIndex = +params.get('pageIndex') || 1;
|
|
// const pageIndex = +params.get('pageIndex') || 1;
|
|
// const pageSize = +params.get('pageSize') || 10;
|
|
// const pageSize = +params.get('pageSize') || 10;
|
|
|
|
|