From 45da2abc7fa50148f95b1e325af9dfb83953d8b7 Mon Sep 17 00:00:00 2001 From: 18500206848 Date: Wed, 17 Apr 2024 21:47:35 +0800 Subject: [PATCH] 11 --- .../enterpriceCertification.vue | 22 +++++++++---------- vue.config.js | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/pages/recruit/subPage/enterpriceCertification/enterpriceCertification.vue b/pages/recruit/subPage/enterpriceCertification/enterpriceCertification.vue index 32bcb93..e82a2a4 100644 --- a/pages/recruit/subPage/enterpriceCertification/enterpriceCertification.vue +++ b/pages/recruit/subPage/enterpriceCertification/enterpriceCertification.vue @@ -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 diff --git a/vue.config.js b/vue.config.js index 5771477..1f309b9 100644 --- a/vue.config.js +++ b/vue.config.js @@ -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': '/'