某草草2017-05-15 17:11:25
Anyway, you should also post a section of the router's relevant configuration file, and then I can tell you to add a field to the route? The ending can be passed on or not.
23333
'path/:id/:params?'
This is the best way.
The following is a bad way, it can be anything messy like creating a shared service or passing cookie parameters,
过去多啦不再A梦2017-05-15 17:11:25
If the route is url: '/smart_accounting/invoice/preCertificate/detail/:id/:type',
then get
$stateParams.id
$stateParams.type