Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-business
/
scrm-equity
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 319ec225
authored
Sep 02, 2021
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
app登录处处理
1 parent
031d7243
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
src/router/index.js
src/views/equity/index.vue
src/router/index.js
View file @
319ec22
...
...
@@ -6,7 +6,7 @@ import {
Notify
}
from
'vant'
import
store
from
'@/store'
import
{
common
}
from
'../api/api'
import
{
common
,
equity
}
from
'../api/api'
Vue
.
use
(
VueRouter
)
const
router
=
new
VueRouter
({
routes
,
...
...
@@ -75,15 +75,14 @@ const getSessionAppId = (sid,status) => {
setUserInfo
(
data
);
if
(
status
)
{
store
.
commit
(
'reload'
);
}
else
{
equity
.
getCardInfo
().
then
(
res
=>
{
let
{
code
}
=
res
;
if
(
code
==
0
)
{
router
.
push
({
name
:
'equity.index'
})
}
})
}
// else {
// equity.getCardInfo().then(res => {
// let { code } = res;
// if (code == 0) {
// router.push({name: 'equity.index'})
// }
// })
// }
}
})
}
...
...
src/views/equity/index.vue
View file @
319ec22
...
...
@@ -266,6 +266,7 @@ export default {
this
.
isConcernFn
();
//app那边可能拿不到头像---写这个重新获取一下
let
{
nickName
,
logo
}
=
this
.
$store
.
state
;
console
.
log
(
'store'
,
this
.
$store
.
state
);
this
.
userInfo
.
nickName
=
nickName
;
this
.
userInfo
.
logo
=
logo
;
},
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment