feat(oidc): 接入统一认证登录与身份自助绑定

- 登录页接入统一认证入口并处理认证回调
- 个人中心新增认证身份区块,支持自助绑定与解绑
- 头像菜单与应用中心新增认证身份入口
- 应用中心删除经营管理分组,业务系统卡片指向统一认证授权地址
- 用户管理页移除认证身份代绑入口与弹窗
- 身份关联接口从用户域移到认证域
This commit is contained in:
Ray.Hao
2026-10-28 08:21:27 +08:00
parent 9cddb95fb7
commit b5bacd2cbf
205 changed files with 6705 additions and 7079 deletions

View File

@@ -25,7 +25,6 @@ export function useCodePreview(genConfigFormData: Ref<GenConfigForm>) {
const code = ref("");
const currentFileKey = ref("");
const fileTreeRef = ref();
const { copy, copied } = useClipboard();
@@ -53,21 +52,15 @@ export function useCodePreview(genConfigFormData: Ref<GenConfigForm>) {
previewTypeOptions.value = typeOptions;
previewTypes.value = [...typeOptions];
/**
* 构建树
*/
// 构建树
const tree = buildFileTree(previewList);
treeData.value = tree?.children ? [...tree.children] : [];
/**
* 选中第一个叶子节点
*/
// 选中第一个叶子节点
const firstLeaf = findFirstLeaf(tree);
if (firstLeaf) {
code.value = firstLeaf.content || "";
currentFileKey.value = firstLeaf.key || "";
await nextTick();
fileTreeRef.value?.setCurrentKey?.(currentFileKey.value);
}
return previewList;
@@ -93,7 +86,7 @@ export function useCodePreview(genConfigFormData: Ref<GenConfigForm>) {
// 过滤条件变了之后,如果当前选中的文件还在就继续高亮,否则选第一个
watch(
() => filteredTreeData.value,
async (nodes) => {
(nodes) => {
if (!nodes.length) {
currentFileKey.value = "";
code.value = "";
@@ -102,8 +95,6 @@ export function useCodePreview(genConfigFormData: Ref<GenConfigForm>) {
if (currentFileKey.value) {
const leaf = findLeafByKey(nodes, currentFileKey.value);
if (leaf) {
await nextTick();
fileTreeRef.value?.setCurrentKey?.(currentFileKey.value);
return;
}
}
@@ -111,8 +102,6 @@ export function useCodePreview(genConfigFormData: Ref<GenConfigForm>) {
if (first) {
code.value = first.content || "";
currentFileKey.value = first.key || "";
await nextTick();
fileTreeRef.value?.setCurrentKey?.(currentFileKey.value);
}
},
{ immediate: true }
@@ -126,7 +115,6 @@ export function useCodePreview(genConfigFormData: Ref<GenConfigForm>) {
previewTypeOptions,
code,
currentFileKey,
fileTreeRef,
handlePreview,
handleFileTreeNodeClick,
handleCopyCode,

View File

@@ -75,8 +75,6 @@ export function useLocalWrite(genConfigFormData: Ref<GenConfigForm>) {
writeDialog.visible = false;
}
// ---- 内部工具函数 ----
/**
* 判断生成项写入前端还是后端根目录
*/