UNPKG

tav-ui

Version:
20 lines (15 loc) 467 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var vue = require('vue'); function getTableProId(router, id) { const { currentRoute } = router; const { name } = vue.unref(currentRoute) || {}; if (!name) { console.warn(`setTableProId has error. Not find current route['name'].`); return null; } else { return `${name}__${id}`; } } exports.getTableProId = getTableProId; //# sourceMappingURL=useTableProId2.js.map