|
@@ -19,7 +19,8 @@ var equipmentDetail = new Vue({
|
|
|
}
|
|
|
},
|
|
|
created: function () {
|
|
|
- this.equipmentId = getUrlParam("id") ? getUrlParam("id")*1 : 0;
|
|
|
+ var paramsArr = window.location.pathname.split(".")[0].split("-");
|
|
|
+ this.equipmentId = paramsArr.length>=1 ? paramsArr[1] : '';
|
|
|
var userInfo = localStorage.getItem('userInfo');
|
|
|
if(userInfo){
|
|
|
this.userId = JSON.parse(userInfo).userId*1;
|