Commit b3089c31 authored by Xuguangxing's avatar Xuguangxing

fix: 处理地址substring

parent 2f83349e
......@@ -55,6 +55,7 @@ export default {
const params = {
editAddress: item
};
console.log(params, JSON.stringify(params));
this.$router.push({
name: 'addressManage',
params,
......
......@@ -98,12 +98,14 @@ export default {
this.type = this.$route.query.type || '';
this.order = this.$route.query.type || false;
if (this.type === 'edit') {
console.log(JSON.stringify(this.$route.params));
console.log(this.$route.params);
const data = { ...this.$route.params.editAddress };
data.addrFullName = data.addrFullName
.substring(0, data.addrFullName.length - data.detail.length)
.replace(/()/g, '');
this.address = data;
if (data.addrFullName) {
data.addrFullName = data.addrFullName
.substring(0, data.addrFullName.length - data.detail.length)
.replace(/()/g, '');
this.address = data;
}
}
},
methods: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment