From 7ab8a291ea35042a7139e6cc40c781f64fb48eaf Mon Sep 17 00:00:00 2001 From: yyc <1477138655@qq.com> Date: Mon, 17 Jul 2023 17:44:37 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=B3=E8=AF=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/otc/otcAppealOrder/index.vue | 52 +++++++++++++++++++++----- src/views/user/userCustomer/index.vue | 9 +++-- vue.config.js | 4 +- 3 files changed, 51 insertions(+), 14 deletions(-) diff --git a/src/views/otc/otcAppealOrder/index.vue b/src/views/otc/otcAppealOrder/index.vue index e1818a5..5883cd1 100644 --- a/src/views/otc/otcAppealOrder/index.vue +++ b/src/views/otc/otcAppealOrder/index.vue @@ -114,13 +114,13 @@ --> @@ -288,13 +290,14 @@ export default { // 用户状态修改 handleStatusChange(row) { - let text = row.status === "0" ? "启用" : "停用"; + console.log(row.status) + let text = row.status === "normal" ? "启用" : "停用"; this.$modal.confirm('确认要"' + text + '""' + row.name + '"用户吗?').then(function () { return changeUserStatus(row.userId, row.status); }).then(() => { this.$modal.msgSuccess(text + "成功"); }).catch(function () { - row.status = row.status === "0" ? "1" : "0"; + row.status = row.status === "frozen" ? "normal" : "frozen"; }); }, // 预览图片 diff --git a/vue.config.js b/vue.config.js index bb8f2f6..7f55416 100644 --- a/vue.config.js +++ b/vue.config.js @@ -35,7 +35,9 @@ module.exports = { proxy: { // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { - target: `http://bitcopay-admin.weirui0755.com/stage-api`, + // target: `http://bitcopay-admin.weirui0755.com/stage-api`, + target: `http://localhost:5500`, + changeOrigin: true, pathRewrite: { ['^' + process.env.VUE_APP_BASE_API]: ''