* Keep the page in the same app.

This commit is contained in:
liumengyi
2023-10-31 08:58:07 +08:00
parent 15f5fa9b55
commit 398ebbe3fb
+5 -2
View File
@@ -20,6 +20,7 @@ class floatPreNextBtn extends wg
}
protected function build(): wg|array
{
global $app;
$preLink = $this->prop('preLink');
$nextLink = $this->prop('nextLink');
@@ -30,14 +31,16 @@ class floatPreNextBtn extends wg
setID('preButton'),
set::url($preLink),
setClass('float-btn fixed left-0 z-10'),
set::icon('angle-left')
set::icon('angle-left'),
set('data-app', $app->tab)
) : null,
!empty($nextLink) ? btn
(
setID('nextButton'),
set::url($nextLink),
setClass('float-btn fixed right-0 z-10'),
set::icon('angle-right')
set::icon('angle-right'),
set('data-app', $app->tab)
) : null,
);
}