修正接口请求
This commit is contained in:
@@ -115,7 +115,7 @@ export default {
|
||||
params: Object,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
return {
|
||||
id: '',
|
||||
form: {
|
||||
useCertificate: '',
|
||||
@@ -134,7 +134,7 @@ export default {
|
||||
radioFrom: '',
|
||||
data: {},
|
||||
}
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
rules() {
|
||||
return {
|
||||
@@ -175,7 +175,7 @@ export default {
|
||||
this.form = JSON.parse(JSON.stringify(this.data))
|
||||
},
|
||||
getDetail(id) {
|
||||
this.instance.post(`/apphomesteadinfo/queryDetailById?id=${id}`).then(res => {
|
||||
this.instance.post(`/app/apphomesteadinfo/queryDetailById?id=${id}`).then(res => {
|
||||
if (res.code === 0) {
|
||||
this.data = res.data
|
||||
}
|
||||
@@ -184,7 +184,7 @@ export default {
|
||||
confirm() {
|
||||
this.$refs.form.validate((valid) => {
|
||||
if (valid) {
|
||||
this.instance.post(`/apphomesteadinfo/addOrUpdate`, {
|
||||
this.instance.post(`/app/apphomesteadinfo/addOrUpdate`, {
|
||||
...this.form,
|
||||
id: this.params.id || '',
|
||||
}).then(res => {
|
||||
@@ -219,4 +219,4 @@ export default {
|
||||
-moz-appearance: textfield !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user