@nent/core
Version:
4 lines • 316 B
JavaScript
/*!
* NENT 2022
*/
import{c as o}from"./index-4bfabbbd.js";const t=o({router:null,location:null,hasExactRoute:!1,debug:!1}),{state:a,onChange:e}=t;let s=!1;e("router",(o=>{o&&0==s&&(o.eventBus.on("*",(()=>{a.hasExactRoute=!1,a.location=o.location,a.hasExactRoute=o.hasExactRoute()})),s=!0)}));export{e as o,a as s}