Commit 4e34714b authored by 郭铭瑶's avatar 郭铭瑶 🤘

修改组织id取值逻辑

parent 154bf41c
...@@ -42,14 +42,14 @@ export default { ...@@ -42,14 +42,14 @@ export default {
const userid: number | null = (await useFetchAuth())?.customer?.id || null const userid: number | null = (await useFetchAuth())?.customer?.id || null
if (!userid) return if (!userid) return
const orgid: string = const orgList: string[] =
( (
await useFetchUser({ await useFetchUser({
keys: '所在组织', keys: '所在组织',
q: `paths @ "userid" && string == "${userid}"`, q: `paths @ "userid" && string == "${userid}"`,
}) })
)?.[0]?.['所在组织']?.[0] || '' )?.[0]?.['所在组织'] || []
const orgid = orgList.filter((id) => (id + '').startsWith('110'))?.[0] || ''
const code: string = const code: string =
( (
await useFetchOrgAuth({ await useFetchOrgAuth({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment