fix(admin): 部门树列宽改为内联样式避免热更滞后

This commit is contained in:
HTEWJ\26070045 committed 2026-10-29 18:22:25 +08:00
1 parent ee2b7cdb7e
commit dd3a671a3d
1 file changed
+2 -2
@@ -131,8 +131,8 @@ onMounted(() => {
</div>
<div v-loading="isLoading" class="admin-dept-body">
<!-- 左侧:组织树(公司虚拟分组 + 层级缩进) -->
<div class="admin-dept-tree">
<!-- 左侧:组织树(公司虚拟分组 + 层级缩进);定宽写在 style 上,避免 HMR 样式层滞后导致宽度不生效 -->
<div class="admin-dept-tree" style="width: 360px; flex-shrink: 0;">
<ElEmpty v-if="displayRows.length === 0" :description="treeEmptyText" :image-size="80" />
<template v-for="row in displayRows" :key="row.key">
<!-- 公司虚拟分组行(不入库,前端按 company 字段归堆) -->