代码提交

This commit is contained in:
2025-07-18 09:32:46 +08:00
parent d6383ac74d
commit 515fb83408
4 changed files with 33 additions and 20 deletions

View File

@@ -36,7 +36,12 @@
showLevel: true, // 是否显示日志级别标签
//暂停/继续 回调函数
onTogglePause: (isPaused) => {
console.log(isPaused ? '暂停' : '继续');
const options = {
url: Fmt.ctx() + '/logging/close',
data: {closed: isPaused},
method: 'post'
};
Fmt.axios(options).then((result) => console.log(result)).catch((err) => console.error(err));
},
onCreated: () => {
console.log('日志容器已创建');