|
|
@@ -355,7 +355,7 @@ const deptId = ref('')
|
|
|
const nodeName = ref('')
|
|
|
const userStore = useUserStore()
|
|
|
|
|
|
-const breadcrumbs = ref<BreadcrumbItem[]>([{ id: null, name: '科瑞石油技术', type: 'root' }])
|
|
|
+const breadcrumbs = ref<BreadcrumbItem[]>([{ id: null, name: '', type: 'root' }])
|
|
|
|
|
|
const loadRootBreadcrumb = async () => {
|
|
|
const currentDeptId = userStore.getUser.deptId
|
|
|
@@ -363,8 +363,7 @@ const loadRootBreadcrumb = async () => {
|
|
|
|
|
|
try {
|
|
|
const currentDept = await getUserProfile()
|
|
|
-
|
|
|
- console.log('sssssssssssssssssssssssss', currentDept)
|
|
|
+ deptId.value = String(currentDept.dept.id)
|
|
|
|
|
|
breadcrumbs.value[0].name = currentDept.dept.name
|
|
|
} catch {}
|