mirror of
https://gitee.com/xiangheng/x_admin.git
synced 2025-09-26 20:21:19 +08:00
小优化
This commit is contained in:
@@ -15,13 +15,13 @@
|
||||
</style>
|
||||
<script src="/XErr.umd.js"></script>
|
||||
<script>
|
||||
const xErr = new XErr.XErr(
|
||||
const xErr = new XErr.Base(
|
||||
{
|
||||
Dns: `${location.origin}/api`,
|
||||
Pid: 'e19e3be20de94f49b68fafb4c30668bc',
|
||||
Uid: ''
|
||||
},
|
||||
new XErr.XErrWeb({
|
||||
new XErr.Web({
|
||||
onloadTimeOut: 5000
|
||||
})
|
||||
)
|
||||
|
File diff suppressed because one or more lines are too long
@@ -42,7 +42,7 @@ func (iSrv indexService) Console() (res map[string]interface{}, e error) {
|
||||
}
|
||||
// 今日数据
|
||||
today := map[string]interface{}{
|
||||
"time": "2022-08-11 15:08:29",
|
||||
"time": util.NullTimeUtil.Now(),
|
||||
"todayVisits": 10, // 访问量(人)
|
||||
"totalVisits": 100, // 总访问量
|
||||
"todaySales": 30, // 销售额(元)
|
||||
@@ -60,7 +60,7 @@ func (iSrv indexService) Console() (res map[string]interface{}, e error) {
|
||||
}
|
||||
visitor := map[string]interface{}{
|
||||
"date": date,
|
||||
"list": []int{12, 13, 11, 5, 8, 22, 14, 9, 456, 62, 78, 12, 18, 22, 46},
|
||||
"list": []int{12, 13, 11, 5, 100, 22, 14, 9, 456, 62, 78, 12, 18, 22, 46},
|
||||
}
|
||||
return map[string]interface{}{
|
||||
"version": version,
|
||||
|
Reference in New Issue
Block a user