This commit is contained in:
18500206848
2024-04-17 21:47:35 +08:00
parent c1dd03201f
commit 45da2abc7f
2 changed files with 12 additions and 12 deletions

View File

@@ -210,23 +210,23 @@
uni.hideKeyboard()
},
async submit() {
let params = {
...this.formData,
nature: Number(this.formData.nature),
cityId: Number(this.formData.cityId),
tradeId: Number(this.formData.tradeId),
}
let resData = await addInviteCompanyAuth(params)
console.log(resData)
if (resData.data.code === 200) {
_this.$api.msg('已完成企业信息认证')
}
const _this = this
this.$refs.formOne.validate().then(res => {
_this.$api.msg('提交数据')
}).catch(errors => {
_this.$api.msg('请完善内容')
})
// let params = {
// ...this.formData,
// nature: Number(this.formData.nature),
// cityId: Number(this.formData.cityId),
// tradeId: Number(this.formData.tradeId),
// }
// let resData = await addInviteCompanyAuth(params)
// console.log(resData)
// if (resData.data.code === 200) {
// _this.$api.msg('已完成企业信息认证')
// }
},
reset() {
const _this = this

View File

@@ -3,7 +3,7 @@ module.exports = {
port: 1887,
proxy: {
'/api': {
target: 'http://10.165.0.173:8000',
target: 'http://localhost:8000',
ws: true,
pathRewrite: {
'^/api': '/'