UNPKG

tav-ui

Version:
16 lines (13 loc) 375 B
import { unref } from 'vue'; function getTableProId(router, id) { const { currentRoute } = router; const { name } = unref(currentRoute) || {}; if (!name) { console.warn(`setTableProId has error. Not find current route['name'].`); return null; } else { return `${name}__${id}`; } } export { getTableProId }; //# sourceMappingURL=useTableProId2.mjs.map