mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-21 10:27:27 +08:00
fix installation for beta5
This commit is contained in:
@@ -57,11 +57,9 @@ export default {
|
||||
if (valid) {
|
||||
api.login(state.ruleForm).then(res => {
|
||||
console.log(res)
|
||||
localSet('token', res.data.token)
|
||||
router.push({name: 'dashboard'})
|
||||
// api.getUserBase().then(res => {
|
||||
// localSet('userInfo', res.data)
|
||||
// })
|
||||
localSet('token', res.data.token)
|
||||
localSet('userInfo', res.data)
|
||||
router.push({name: 'dashboard'})
|
||||
})
|
||||
} else {
|
||||
console.log('error submit!!')
|
||||
|
||||
Reference in New Issue
Block a user