no message

This commit is contained in:
kuaifan 2024-10-28 20:02:28 +08:00
parent 7df9c37850
commit 36f313380e
10 changed files with 12 additions and 6 deletions

View File

@ -1064,7 +1064,7 @@ class SystemController extends AbstractController
* @apiGroup system
* @apiName get__updatelog
*
* @apiParam {Number} [take] 获取数量10-100
* @apiParam {Number} [take] 获取数量10-100留空默认50
*
* @apiSuccess {Number} ret 返回状态码1正确、0错误
* @apiSuccess {String} msg 返回信息(错误描述)
@ -1072,7 +1072,7 @@ class SystemController extends AbstractController
*/
public function get__updatelog()
{
$take = min(100, max(10, intval(Request::input('take'))));
$take = min(100, max(10, intval(Request::input('take', 50))));
$logPath = base_path('CHANGELOG.md');
$logVersion = "";
$logContent = "";
@ -1090,7 +1090,7 @@ class SystemController extends AbstractController
if ($logResults) {
$logVersion = $logResults[0]['title'];
$logContent = implode("\n", array_map(function($item) {
return "## " . $item['title'] . $item['content'];
return "## [{$item['title']}]" . $item['content'];
}, $logResults));
}
return Base::retSuccess('success', [

View File

@ -40,7 +40,7 @@ export default {
this.$store.dispatch("call", {
url: 'system/get/updatelog',
data: {
take: 20
take: 50
}
}).then(({data}) => {
this.updateLog = data.updateLog;

View File

@ -1405,7 +1405,7 @@
> span {
flex: 1;
height: 1px;
background-color: rgba(255, 255, 255, 0.2);
background-color: rgba(120, 120, 120, 0.2);
transform: scaleY(0.5);
min-width: 18px;
}
@ -1767,6 +1767,12 @@
}
}
.content-divider {
> span {
background-color: rgba(255, 255, 255, 0.2);
}
}
.mention {
color: $primary-title-color;

@ -1 +1 @@
Subproject commit f88e40036e465a609b91c6221d77d556e08f48df
Subproject commit 65aaf080fc2b6294b2ba043500ed0beed4a1c5eb