草庐IT

customerBannerId

全部标签

若依框架前后端各个请求方式参数传递示例

get请求1.1不带params(Restful风格)封装方法getBannerexportfunctiongetBanner(customerBannerId){returnrequest({url:'/recruit/banner/'+customerBannerId,method:'get'})}getBanner方法调用(customerBannerId是一个数字)import{getBanner}from"@/api/recruit/banner";handleUpdate(row){this.reset();this.pageStatus="edit";constcustomerB