mirror of
https://github.com/flarum/framework.git
synced 2025-03-10 20:31:24 +08:00
history back function fix
it shouldn't check for canGoBack again after the array pop()
This commit is contained in:
parent
a0ed6c5d69
commit
3acee604d4
@ -92,7 +92,7 @@ export default class History {
|
||||
|
||||
this.stack.pop();
|
||||
|
||||
this.canGoBack() ? m.route(this.getCurrent().url) : this.home();
|
||||
m.route(this.getCurrent().url);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user