修正接口请求

This commit is contained in:
aixianling
2022-08-26 14:24:34 +08:00
parent 44ca30cbf3
commit ce1fd46b7e
53 changed files with 151 additions and 151 deletions

View File

@@ -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>