feat: 添加员工门户项目及相关后端改造
- 新增 hzhub-portal-employee 员工门户前端项目(基于 Vue3 + Element Plus) - 后端登录接口增加返回 nickName 字段 - 移除 KnowledgeInfoController 的 @SaCheckPermission 注解 - 删除 hzhub-portal-company 旧门户项目 - 更新项目文档和架构说明 - 添加后台运行管理脚本(start-all.sh / status-all.sh / stop-all.sh) - 更新 docker-compose 配置 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
32
hzhub-portal-employee/src/stores/modules/keepAlive.ts
Normal file
32
hzhub-portal-employee/src/stores/modules/keepAlive.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
import { defineStore } from 'pinia';
|
||||
|
||||
export const useKeepAliveStore = defineStore(
|
||||
'keep-alive',
|
||||
() => {
|
||||
const keepAliveName = ref<string[]>([]);
|
||||
|
||||
const addKeepAliveName = (name: string) => {
|
||||
if (!keepAliveName.value.includes(name)) {
|
||||
keepAliveName.value.push(name);
|
||||
}
|
||||
};
|
||||
|
||||
const removeKeepAliveName = (name: string) => {
|
||||
keepAliveName.value = keepAliveName.value.filter(item => item !== name);
|
||||
};
|
||||
|
||||
const setKeepAliveName = (name: string[]) => {
|
||||
keepAliveName.value = name;
|
||||
};
|
||||
|
||||
return {
|
||||
keepAliveName,
|
||||
addKeepAliveName,
|
||||
removeKeepAliveName,
|
||||
setKeepAliveName,
|
||||
};
|
||||
},
|
||||
{
|
||||
persist: true,
|
||||
},
|
||||
);
|
||||
Reference in New Issue
Block a user