mirror of
https://github.com/flarum/framework.git
synced 2025-02-11 16:36:14 +08:00
parent
f71db08467
commit
20dfcfc39c
|
@ -86,6 +86,10 @@ export default class History {
|
||||||
* @public
|
* @public
|
||||||
*/
|
*/
|
||||||
back() {
|
back() {
|
||||||
|
if (! this.canGoBack()) {
|
||||||
|
return this.home();
|
||||||
|
}
|
||||||
|
|
||||||
this.stack.pop();
|
this.stack.pop();
|
||||||
|
|
||||||
m.route(this.getCurrent().url);
|
m.route(this.getCurrent().url);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user