We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在登录只有Login的属性Redirect会重新设置跳转的Url
public string Redirect { get { var rv = _redirect; if (string.IsNullOrEmpty(rv) == false) { if (rv.StartsWith("/#") == false) { rv = "/#" + rv; } if(rv.Split("#/").Length > 2) { int index = rv.LastIndexOf("#/"); rv = rv.Substring(0, index); } } return rv; } set { _redirect = value; } }
但是如果我给Home/Index Contrller设置了route之后,这一段代码就会有异常,他会跳转到 {host}/#{route}/ 的地址
The text was updated successfully, but these errors were encountered:
是,你这里也得适当修改
Sorry, something went wrong.
No branches or pull requests
在登录只有Login的属性Redirect会重新设置跳转的Url
public string Redirect
{
get
{
var rv = _redirect;
if (string.IsNullOrEmpty(rv) == false)
{
if (rv.StartsWith("/#") == false)
{
rv = "/#" + rv;
}
if(rv.Split("#/").Length > 2)
{
int index = rv.LastIndexOf("#/");
rv = rv.Substring(0, index);
}
}
return rv;
}
set { _redirect = value; }
}
但是如果我给Home/Index Contrller设置了route之后,这一段代码就会有异常,他会跳转到 {host}/#{route}/ 的地址
The text was updated successfully, but these errors were encountered: