关于vue在url上动态传递参数

 1 getGroupMemberListData(
 2             { commit, state, getters },
 3             { groupId, groupSearchRange, searchParam, pageNum = 1 }
 4         ) {
 5             return this.dispatch("postData", {
 6                 url: getters.urls.getGroupMemberList(
 7                     groupId,
 8                     groupSearchRange,
 9                     pageNum
10                 ),
11                 data: searchParam
12             });
13      }
 1 getGroupMemberList(groupId, groupSearchRange, pageNum) {
 2                     return (
 3                         this.apiBasePath +
 4                         "/admin/point/point-earn/api/get-group-member-point-member-grid-data/" +
 5                         groupId +
 6                         "/" +
 7                         groupSearchRange +
 8                         "/" +
 9                         pageNum
10                     );
11                 }
1 @RequestMapping("get-group-member-point-member-grid-data/{groupId}/{groupSearchRange}/{pageNum}")
2 @ResponseBody
3 public Map<String, Object> getPointMemberGridDataForGroupMember(@PathVariable String tenantSignId, @PathVariable int groupId, @PathVariable String groupSearchRange, @PathVariable int pageNum, 
4             HttpServletRequest request, HttpSession session,Map<String, Object> uiDataMap, Model model) throws Exception {}

 

关于vue在url上动态传递参数

上一篇:JS的几种遍历方式


下一篇:nginx-http之empty_gif(五)