Merge branch '0.8.X' of https://gitee.com/hdka/klp-oa into 0.8.X

This commit is contained in:
砂糖
2025-07-29 16:57:19 +08:00
9 changed files with 635 additions and 2 deletions

View File

@@ -128,6 +128,13 @@ export default {
icon: 'fas fa-cog',
bgColor: 'bg-indigo-500',
link: '/system/menu'
},
{
title: 'WebSocket测试',
description: '实时通信功能测试',
icon: 'fas fa-comments',
bgColor: 'bg-teal-500',
link: '/websocket-test.html'
}
],
resourceCharts: [
@@ -189,7 +196,12 @@ export default {
}
},
handleLink(item) {
this.$router.push(item);
// 如果是外部链接以http开头或.html结尾则在新窗口打开
if (item.startsWith('http') || item.endsWith('.html')) {
window.open(item, '_blank');
} else {
this.$router.push(item);
}
},
getGreeting() {
const hour = new Date().getHours();
@@ -209,6 +221,7 @@ export default {
case 'bg-purple-500': return 'bg-purple';
case 'bg-red-500': return 'bg-red';
case 'bg-indigo-500': return 'bg-indigo';
case 'bg-teal-500': return 'bg-teal';
default: return '';
}
},
@@ -422,6 +435,7 @@ export default {
.bg-purple { background: #a855f7; }
.bg-red { background: #ef4444; }
.bg-indigo { background: #6366f1; }
.bg-teal { background: #14b8a6; }
.business-module-title {
font-size: 16px;
font-weight: 500;