From 94418a8f9f4841c549d428339bd884daf94ea557 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=96=87=E5=8F=AF?= <1041367524@qq.com> Date: Wed, 27 Apr 2022 16:59:34 +0800 Subject: [PATCH] =?UTF-8?q?conf:=20=E5=AE=A2=E6=88=B7=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/customer.js | 4 ++-- src/views/system/customer/index.vue | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/api/system/customer.js b/src/api/system/customer.js index a09a3d5..8955e12 100644 --- a/src/api/system/customer.js +++ b/src/api/system/customer.js @@ -1,14 +1,14 @@ import request from '@/utils/request.js'; export const search = (params) => { return request({ - url: 'admin/user/page', + url: 'uc/admin/user/page', method: 'get', params, }); }; export const enable = (params) => { return request({ - url: 'admin/user/enable', + url: 'uc/admin/user/enable', method: 'put', params, }); diff --git a/src/views/system/customer/index.vue b/src/views/system/customer/index.vue index b4daa97..4b22b8b 100644 --- a/src/views/system/customer/index.vue +++ b/src/views/system/customer/index.vue @@ -70,6 +70,7 @@ await store.dispatch('customer/search'); loading.value = false; }; + onActivated(handleSearch); const handleEnable = async (row) => { loading.value = true; await store.dispatch('customer/enable', { userId: row.id, isEnable: !row.isEnable });