diff --git a/src/App.vue b/src/App.vue index 81be2fa..52354db 100644 --- a/src/App.vue +++ b/src/App.vue @@ -49,11 +49,11 @@ }; onMounted(() => { - document.addEventListener('mousedown', timekeeping); + // document.addEventListener('mousedown', timekeeping); }); onUnmounted(() => { - document.removeEventListener('mousedown', timekeeping); + // document.removeEventListener('mousedown', timekeeping); }); diff --git a/src/api/system/tenant.ts b/src/api/system/tenant.ts index afb89dd..efecc6b 100644 --- a/src/api/system/tenant.ts +++ b/src/api/system/tenant.ts @@ -58,4 +58,14 @@ export function tenantBatchDelete(data:any) { method: 'DELETE', data }); +} +/** + * @description: 创建租户账号 + */ +export function tenantAccount(data:any) { + return http.request({ + url: '/tenant/account', + method: 'POST', + data, + }); } \ No newline at end of file diff --git a/src/api/system/user.ts b/src/api/system/user.ts index c193d59..abc75f9 100644 --- a/src/api/system/user.ts +++ b/src/api/system/user.ts @@ -53,16 +53,13 @@ export function getInfoCaptcha() { /** * @description: 用户修改密码 */ -export function changePassword(params, uid) { +export function changePassword(data) { return http.request( { - url: `/user/u${uid}/changepw`, - method: 'POST', - params, - }, - { - isTransformResponse: false, - }, + url: `/index/updatePassword`, + method: 'PUT', + data + } ); } diff --git a/src/components/Form/src/BasicForm.vue b/src/components/Form/src/BasicForm.vue index 1af07fb..292a641 100644 --- a/src/components/Form/src/BasicForm.vue +++ b/src/components/Form/src/BasicForm.vue @@ -105,6 +105,7 @@ v-bind="getComponentProps(schema)" :is="`el-${schema.component}`" v-model="formModel[schema.field]" + :type="schema.type" />