Home  >  Q&A  >  body text

angular.js - AngularJS配置了$locationProvider.html5Mode 返回上一页直接输出JSON

从列表页点击链接进入查看,然后查看返回上一页onclick="history.go(-1)"

直接就输出列表页的JSON

如果不使用html url就没有问题,怎么解决????

PHPzPHPz2704 days ago538

reply all(2)I'll reply

  • 迷茫

    迷茫2017-05-15 17:00:14

    Use angular ui router and use $state.go

    reply
    0
  • 黄舟

    黄舟2017-05-15 17:00:14

    It may be a problem with your routing configuration. Post it and take a look. It is recommended not to use angular routing. It is more convenient to use UI-router.

    reply
    0
  • Cancelreply