no message

This commit is contained in:
kuaifan
2024-10-28 21:18:24 +08:00
parent 7df9c37850
commit 36f313380e
10 changed files with 12 additions and 6 deletions
@@ -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', [
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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;
+7 -1
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;