Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
H
huamu
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
郭铭瑶
huamu
Commits
4e34714b
Commit
4e34714b
authored
Oct 11, 2021
by
郭铭瑶
🤘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改组织id取值逻辑
parent
154bf41c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
actions.ts
src/store/actions.ts
+3
-3
No files found.
src/store/actions.ts
View file @
4e34714b
...
@@ -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
org
id
:
string
=
const
org
List
:
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
({
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment