在example here和issue comment中,建議使用history的useBeforeUnload函數。 但是,此功能已消失。它似乎是removed without replacement in the current 4.x version: 刪除了「中間件」API(即所有「使用」功能)。 現在爲了顯示確認對話框,處理這些「卸載」情況時處理這些問題的好方法是什麼?
我試圖建立一個搖籃插件將允許以下內容: myPluginConfig {
something1 {
// this is a closure
}
somethingElse {
// this is another closure
}
// more closures here
}
要做到這一點我相當肯定我需要使用Na