diff --git a/src/layouts/modules/global-header/index.vue b/src/layouts/modules/global-header/index.vue index 85995c26..786047b1 100644 --- a/src/layouts/modules/global-header/index.vue +++ b/src/layouts/modules/global-header/index.vue @@ -45,7 +45,7 @@ const tenantId = ref(authStore.userInfo?.user?.tenantId || '0
- + (authStore.userInfo?.user?.tenantId || '0 :is-dark="themeStore.darkMode" @switch="themeStore.toggleThemeScheme" /> - +
diff --git a/src/service/api/system/tenant.ts b/src/service/api/system/tenant.ts index 0fd939a1..0724a4c1 100644 --- a/src/service/api/system/tenant.ts +++ b/src/service/api/system/tenant.ts @@ -16,7 +16,7 @@ export function fetchCreateTenant(data: Api.System.TenantOperateParams) { method: 'post', headers: { isEncrypt: true, - repeatSubmit: true + repeatSubmit: false }, data }); diff --git a/src/service/api/system/user.ts b/src/service/api/system/user.ts index e7c03d86..df1c11d2 100644 --- a/src/service/api/system/user.ts +++ b/src/service/api/system/user.ts @@ -81,7 +81,8 @@ export function fetchResetUserPassword(userId: CommonType.IdType, password: stri url: '/system/user/resetPwd', method: 'put', headers: { - isEncrypt: true + isEncrypt: true, + repeatSubmit: false }, data: { userId, password } }); @@ -118,6 +119,9 @@ export function fetchUpdateUserPassword(data: Api.System.UserPasswordOperatePara return request({ url: '/system/user/profile/updatePwd', method: 'put', + headers: { + isEncrypt: true + }, data }); } diff --git a/src/store/modules/theme/shared.ts b/src/store/modules/theme/shared.ts index e980a799..8655d96d 100644 --- a/src/store/modules/theme/shared.ts +++ b/src/store/modules/theme/shared.ts @@ -252,6 +252,9 @@ export function getNaiveTheme(colors: App.Theme.ThemeColor, recommended = false) }, Tag: { borderRadius: '6px' + }, + Button: { + textColorPrimary: '#ffffff' } }; diff --git a/src/typings/api/system.api.d.ts b/src/typings/api/system.api.d.ts index d91b0fef..c3df96eb 100644 --- a/src/typings/api/system.api.d.ts +++ b/src/typings/api/system.api.d.ts @@ -152,9 +152,10 @@ declare namespace Api { type UserProfileOperateParams = CommonType.RecordNullable>; /** user password operate params */ - type UserPasswordOperateParams = CommonType.RecordNullable< - Pick & { newPassword: string } - >; + type UserPasswordOperateParams = CommonType.RecordNullable<{ + oldPassword: string; + newPassword: string; + }>; /** user info */ type UserInfo = { diff --git a/src/views/_builtin/login/index.vue b/src/views/_builtin/login/index.vue index 187b33dd..b341dc33 100644 --- a/src/views/_builtin/login/index.vue +++ b/src/views/_builtin/login/index.vue @@ -39,8 +39,8 @@ const activeModule = computed(() => moduleMap[props.module || 'pwd-login']);