mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-11 03:24:16 +00:00
added app.softReload
event
This commit is contained in:
parent
86556b4913
commit
b592c22195
@ -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()
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user