Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Moecube Accounts Web
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Moecube Accounts Web
Commits
014faf2b
Commit
014faf2b
authored
Apr 05, 2017
by
nano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
e46a84f3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
28 deletions
+3
-28
package.json
package.json
+1
-1
src/config.js
src/config.js
+1
-3
src/models/user.js
src/models/user.js
+1
-24
No files found.
package.json
View file @
014faf2b
{
"private"
:
true
,
"scripts"
:
{
"start"
:
"
PORT=8081
roadhog server"
,
"start"
:
"roadhog server"
,
"build"
:
"roadhog build"
,
"lint"
:
"eslint --ext .js src test"
,
"precommit"
:
"npm run lint"
...
...
src/config.js
View file @
014faf2b
export
default
{
apiRoot
:
'
http://192.168.1.9:3000
'
,
returnSSO
:
'
http://localhost:8000/
'
,
SSOProvider
:
'
https://ygobbs.com/session/sso_provider
'
apiRoot
:
'
http://192.168.1.9:3000
'
};
src/models/user.js
View file @
014faf2b
...
...
@@ -90,15 +90,6 @@ export default {
localStorage
.
setItem
(
"
token
"
,
token
)
}
<<<<<<<
Updated
upstream
if
(
user
&&
user
.
active
)
{
yield
put
(
routerRedux
.
replace
(
"
/profiles
"
))
// message.info("登录成功")
}
else
{
yield
put
(
routerRedux
.
replace
(
`/verify`
))
}
=======
if
(
user
)
{
if
(
handleSSO
(
user
)){
return
...
...
@@ -112,7 +103,6 @@ export default {
yield
put
(
routerRedux
.
replace
(
`/verify`
))
}
}
>>>>>>>
Stashed
changes
},
*
preLogin
({
payload
},
{
call
,
put
})
{
const
{
token
}
=
payload
...
...
@@ -126,14 +116,7 @@ export default {
if
(
data
)
{
yield
put
({
type
:
'
preLoginSuccess
'
,
payload
:
{
user
:
data
,
token
}})
<<<<<<<
Updated
upstream
if
(
data
.
active
)
{
// yield put(routerRedux.replace("/profiles"))
}
}
}
catch
(
error
)
{
message
.
error
(
error
.
message
)
=======
if
(
data
)
{
if
(
handleSSO
(
user
)){
return
...
...
@@ -148,7 +131,6 @@ export default {
}
}
catch
(
error
)
{
yield
put
(
routerRedux
.
replace
(
"
/signin
"
))
>>>>>>>
Stashed
changes
}
},
*
updateProfile
({
payload
},
{
call
,
put
,
select
})
{
...
...
@@ -157,11 +139,6 @@ export default {
let
token
=
yield
select
(
state
=>
state
.
user
.
token
)
let
{
messages
}
=
yield
select
(
state
=>
state
.
common
)
try
{
<<<<<<<
Updated
upstream
let
token
=
yield
select
(
state
=>
state
.
user
.
token
)
let
{
messages
}
=
yield
select
(
state
=>
state
.
common
)
=======
>>>>>>>
Stashed
changes
let
{
data
}
=
yield
call
(
updateProfile
,
{...
payload
,
token
})
...
...
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