Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
OKR
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hanfeng zhang
OKR
Commits
30a875bf
Commit
30a875bf
authored
Sep 08, 2021
by
hanfeng zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
321
parent
8c4793c7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
index.ts
src/util/Bridge/index.ts
+1
-1
team-frame.vue
src/views/team/team-frame.vue
+6
-2
No files found.
src/util/Bridge/index.ts
View file @
30a875bf
...
@@ -66,7 +66,7 @@ export function appNavBack(){
...
@@ -66,7 +66,7 @@ export function appNavBack(){
* 获取用户的资料
* 获取用户的资料
* @returns
* @returns
*/
*/
export
function
getUserInfo
():
GETUSERINFO
{
export
function
getUserInfo
():
any
{
const
data
=
dsbridge
.
call
(
BridgeMethods
.
GET_USERINFO
,
{},
(
res
)
=>
{
const
data
=
dsbridge
.
call
(
BridgeMethods
.
GET_USERINFO
,
{},
(
res
)
=>
{
return
res
return
res
})
})
...
...
src/views/team/team-frame.vue
View file @
30a875bf
...
@@ -101,8 +101,11 @@ export default Vue.extend({
...
@@ -101,8 +101,11 @@ export default Vue.extend({
}
}
},
},
mounted
()
{
mounted
()
{
this
.
entId
=
process
.
env
.
NODE_EN
===
'production'
?
getUserInfo
()?.
entId
:
'166961152260050944'
const
res
=
JSON
.
parse
(
getUserInfo
())
console
.
log
(
'这里出来了么?'
,
this
.
entId
);
console
.
log
(
res
,
typeof
res
,
'哈哈哈'
);
this
.
entId
=
process
.
env
.
NODE_ENV
===
'production'
?
res
.
entId
:
'166961152260050944'
console
.
log
(
'这里出来了么?'
,
this
.
entId
,
getUserInfo
(),
'这里呢'
);
localStorage
.
setItem
(
'USR_INFO'
,
JSON
.
stringify
(
getUserInfo
()))
localStorage
.
setItem
(
'USR_INFO'
,
JSON
.
stringify
(
getUserInfo
()))
this
.
getEntInfo
()
this
.
getEntInfo
()
...
@@ -120,6 +123,7 @@ export default Vue.extend({
...
@@ -120,6 +123,7 @@ export default Vue.extend({
appNavBack
,
appNavBack
,
getEntInfo
()
{
getEntInfo
()
{
this
.
loading
=
true
this
.
loading
=
true
return
this
.
$service
.
enterprise
.
getEnterpriseInfo
({
return
this
.
$service
.
enterprise
.
getEnterpriseInfo
({
id
:
this
.
entId
id
:
this
.
entId
}).
then
((
res
:
any
)
=>
{
}).
then
((
res
:
any
)
=>
{
...
...
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