token问题使用sotorage方式存储和读取

This commit is contained in:
2023-08-23 14:29:44 +08:00
parent 989affd5ea
commit 6060a36d92
4 changed files with 11 additions and 44 deletions

View File

@ -12,7 +12,7 @@
/>
</div>
<div class="addContentWrap">
<cell-group label="车牌号" placeholder="请输入车牌号" @input="getPLateNum(carNum)" v-model="carNum" />
<cell-group label="车牌号" placeholder="请输入车牌号" v-model="carNum" />
<div class="itemContent">
<div class="titleType">
<img class="startImg" src="@/assets/start.png" />
@ -182,29 +182,18 @@ export default {
}
},
change(e) {
// console.log("拖车服务",e)
this.trailerService=e
},
change2(e) {
// console.log("小修服务",e)
this.smallRepairService=e
},
isChange(e){
// console.log("是否参与",e)
this.isJoin=e
},
cancelBtn(){//取消车辆
this.$router.back()
},
async submitBtn(){
this.$toast(JSON.stringify({
vehicleId:this.id ? this.id : '',
plateNumber:this.carNum ? this.carNum :'',
vehicleType:this.selectedOption ? this.selectedOption : '',
hasPolymerization:Number(this.isJoin ? this.isJoin : '') ,
serviceIds:this.serviceIds ? this.serviceIds : []
}))
console.log("提交车辆");
let res=await saveVehicle({
vehicleId:this.id ? this.id : '',
plateNumber:this.carNum ? this.carNum :'',
@ -219,17 +208,10 @@ export default {
}else{
this.$toast('添加成功')
}
setTimeout(()=>{
this.$router.back();
},2000)
}else{
this.$toast(res.msg)
}
console.log("res",res)
},
getPLateNum(e){
console.log("e",e)
},
},
components:{