|
@@ -107,6 +107,7 @@ const tryLogin = () => {
|
|
|
//set token cookie
|
|
|
Cookie.set('indent-token', res.result.token)
|
|
|
Cookie.set('indent-user', res.result.username)
|
|
|
+ Cookie.set('indent-id', res.result.id || '')
|
|
|
// 登录成功, 有来源的跳转回来源路径, 没有的去indent列表
|
|
|
if ($route.query.origin?.length) {
|
|
|
$router.replace(decodeURIComponent($route.query.origin as string))
|