added app.softReload event

This commit is contained in:
SrGooglo 2022-11-19 05:05:11 +00:00
parent 61d2e4b52b
commit 7037583b3a

View File

@ -126,6 +126,12 @@ class App extends React.Component {
"app.reload": () => { "app.reload": () => {
window.location.reload() window.location.reload()
}, },
"app.softReload": () => {
this.forceUpdate()
app.eventBus.emit("layout.forceUpdate")
app.eventBus.emit("router.forceUpdate")
},
"app.openSearcher": () => { "app.openSearcher": () => {
App.publicMethods.openSearcher() App.publicMethods.openSearcher()
}, },