修复当封面是-1页码的时候无法索引定位
This commit is contained in:
@@ -2226,7 +2226,7 @@ export function ReviewPointsList({
|
||||
|
||||
// 遍历contentPage中的每个key
|
||||
for (const key of Object.keys(reviewPoint.contentPage)) {
|
||||
if (reviewPoint.contentPage[key] && parseInt(reviewPoint.contentPage[key] as string) > 0) {
|
||||
if (reviewPoint.contentPage[key] && parseInt(reviewPoint.contentPage[key] as string) >= -1) {
|
||||
// 返回第一个找到的有效页码,以及对应的key
|
||||
return {
|
||||
pageIndex: parseInt(reviewPoint.contentPage[key] as string),
|
||||
|
||||
@@ -72,9 +72,9 @@ const portConfigs: Record<string, Partial<ApiConfig>> = {
|
||||
// 主要
|
||||
// 梅州
|
||||
'51703': {
|
||||
baseUrl: 'http://172.16.0.55:8073',
|
||||
documentUrl: 'http://172.16.0.55:8073/docauditai/',
|
||||
uploadUrl: 'http://172.16.0.55:8073/admin/documents'
|
||||
baseUrl: 'http://nas.7bm.co:8073',
|
||||
documentUrl: 'http://nas.7bm.co:8073/docauditai/',
|
||||
uploadUrl: 'http://nas.7bm.co:8073/admin/documents'
|
||||
// baseUrl: 'http://nas.7bm.co:8873',
|
||||
// documentUrl: 'http://nas.7bm.co:8873/docauditai/',
|
||||
// uploadUrl: 'http://nas.7bm.co:8873/admin/documents'
|
||||
|
||||
Reference in New Issue
Block a user