fix: fix login bug

This commit is contained in:
sean 2017-08-11 11:42:52 +08:00
parent 6ed74e8ae1
commit b17f008bc0
3 changed files with 7 additions and 7 deletions

View File

@ -54,7 +54,7 @@ class Login extends Component {
}
componentDidMount() {
window.QSSO.attach('qsso-login','/user/login_by_token')
window.QSSO.attach('qsso-login','/api/user/login_by_token')
}

View File

@ -20,11 +20,11 @@ class baseController {
async init(ctx) {
this.$user = null;
let ignoreRouter = [
'/user/login_by_token',
'/user/login',
'/user/reg',
'/user/status',
'/user/logout'
'/api/user/login_by_token',
'/api/user/login',
'/api/user/reg',
'/api/user/status',
'/api/user/logout'
];
if (ignoreRouter.indexOf(ctx.path) > -1) {
this.$auth = true;

View File

@ -66,7 +66,7 @@ var baseController = function () {
switch (_context.prev = _context.next) {
case 0:
this.$user = null;
ignoreRouter = ['/user/login_by_token', '/user/login', '/user/reg', '/user/status', '/user/logout'];
ignoreRouter = ['/api/user/login_by_token', '/api/user/login', '/api/user/reg', '/api/user/status', '/api/user/logout'];
if (!(ignoreRouter.indexOf(ctx.path) > -1)) {
_context.next = 6;