Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
techbook
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
front-end-dev
techbook
Commits
92d89bfb
Commit
92d89bfb
authored
Dec 11, 2020
by
anxixi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
人脉圈
parent
930a59ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
29 deletions
+31
-29
peoplehome.vue
src/views/peoplehomepage/peoplehome.vue
+31
-29
No files found.
src/views/peoplehomepage/peoplehome.vue
View file @
92d89bfb
...
...
@@ -247,7 +247,7 @@
urltext
:
''
,
urlIntegral
:
this
.
publicFun
.
getCurrentHrefEnv
()
+
"/index"
,
isTrans
:
this
.
publicFun
.
getCookie
(
"language"
)
==
"zh-CN"
?
true
:
false
,
userInfo
:
this
.
publicFun
.
getUserInfoCookieType
()
?
JSON
.
parse
(
this
.
Base64
.
decode
(
this
.
publicFun
.
getUserInfoCookieType
()))
:
{}
,
userInfo
:
this
.
publicFun
.
getUserInfoCookieType
()
?
JSON
.
parse
(
this
.
Base64
.
decode
(
this
.
publicFun
.
getUserInfoCookieType
()))
:
null
,
}
},
components
:{
...
...
@@ -540,43 +540,45 @@
if
(
!
this
.
userInfo
){
this
.
$router
.
push
({
path
:
"/circleList"
});
return
}
if
(
this
.
isTrans
){
this
.
isrouterType
(
this
.
$route
.
path
);
}
else
{
this
.
isrouterType
(
'/peoplehome/tabs/activity'
);
}
this
.
getPersonalCenter
();
this
.
getEmpDataLabelList
();
this
.
getInitInfo
();
if
(
this
.
$route
.
query
.
id
){
this
.
selectBaseEmpRelation
();
if
(
this
.
isTrans
){
this
.
isrouterType
(
this
.
$route
.
path
);
}
else
{
this
.
isrouterType
(
'/peoplehome/tabs/activity'
);
}
this
.
getPersonalCenter
();
this
.
getEmpDataLabelList
();
this
.
getInitInfo
();
if
(
this
.
$route
.
query
.
id
){
this
.
selectBaseEmpRelation
();
}
}
},
watch
:
{
$route
(
to
,
from
)
{
//将mounted中的数据在这里重新加载一下即可
if
(
!
this
.
userInfo
){
this
.
$router
.
push
({
path
:
"/circleList"
});
}
this
.
activeName
=
'comment'
;
this
.
empContactData
=
{
baseEmpInformation
:{}
};
this
.
empContactstate
=
{
isConstact
:
true
,
};
this
.
getInitInfo
();
this
.
getPersonalCenter
();
this
.
getEmpDataLabelList
();
if
(
this
.
$route
.
query
.
id
){
this
.
selectBaseEmpRelation
();
}
if
(
this
.
isTrans
){
this
.
isrouterType
(
to
.
path
);
return
}
else
{
this
.
isrouterType
(
'/peoplehome/tabs/activity'
);
this
.
activeName
=
'comment'
;
this
.
empContactData
=
{
baseEmpInformation
:{}
};
this
.
empContactstate
=
{
isConstact
:
true
,
};
this
.
getInitInfo
();
this
.
getPersonalCenter
();
this
.
getEmpDataLabelList
();
if
(
this
.
$route
.
query
.
id
){
this
.
selectBaseEmpRelation
();
}
if
(
this
.
isTrans
){
this
.
isrouterType
(
to
.
path
);
}
else
{
this
.
isrouterType
(
'/peoplehome/tabs/activity'
);
}
}
}
},
...
...
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