diff --git a/apps/vue/src/api/auditing/auditLog.ts b/apps/vue/src/api/auditing/auditLog.ts index 02334bf52..680e59f4c 100644 --- a/apps/vue/src/api/auditing/auditLog.ts +++ b/apps/vue/src/api/auditing/auditLog.ts @@ -12,9 +12,7 @@ export const deleteById = (id: string) => { controller: Api.Controller, action: 'DeleteAsync', params: { - input: { - id: id, - }, + id: id, }, }); }; diff --git a/apps/vue/src/api/identity/securityLog.ts b/apps/vue/src/api/identity/securityLog.ts index f8c838b8b..4d339bb61 100644 --- a/apps/vue/src/api/identity/securityLog.ts +++ b/apps/vue/src/api/identity/securityLog.ts @@ -12,9 +12,7 @@ export const deleteById = (id: string) => { controller: Api.Controller, action: 'DeleteAsync', params: { - input: { - id: id, - }, + id: id, }, }); }; @@ -25,9 +23,7 @@ export const getById = (id: string) => { controller: Api.Controller, action: 'GetAsync', params: { - input: { - id: id, - }, + id: id, }, }); }; diff --git a/apps/vue/src/components/MultiTenancyBox/src/MultiTenancyBox.vue b/apps/vue/src/components/MultiTenancyBox/src/MultiTenancyBox.vue index cb10ad201..cd63c61a3 100644 --- a/apps/vue/src/components/MultiTenancyBox/src/MultiTenancyBox.vue +++ b/apps/vue/src/components/MultiTenancyBox/src/MultiTenancyBox.vue @@ -16,50 +16,28 @@ - diff --git a/apps/vue/src/components/MultiTenancyBox/src/MultiTenancyModal.vue b/apps/vue/src/components/MultiTenancyBox/src/MultiTenancyModal.vue index 1f4c2609e..047923f7b 100644 --- a/apps/vue/src/components/MultiTenancyBox/src/MultiTenancyModal.vue +++ b/apps/vue/src/components/MultiTenancyBox/src/MultiTenancyModal.vue @@ -14,8 +14,8 @@ - diff --git a/apps/vue/src/components/SettingManagement/src/SettingForm.vue b/apps/vue/src/components/SettingManagement/src/SettingForm.vue index 608dfc075..b86422370 100644 --- a/apps/vue/src/components/SettingManagement/src/SettingForm.vue +++ b/apps/vue/src/components/SettingManagement/src/SettingForm.vue @@ -81,7 +81,7 @@ - {{ sumbitButtonTitle }} - + - diff --git a/apps/vue/src/utils/cache/persistent.ts b/apps/vue/src/utils/cache/persistent.ts index 5b2d32e7e..72aad9a7a 100644 --- a/apps/vue/src/utils/cache/persistent.ts +++ b/apps/vue/src/utils/cache/persistent.ts @@ -6,7 +6,6 @@ import { createLocalStorage, createSessionStorage } from '/@/utils/cache'; import { Memory } from './memory'; import { TOKEN_KEY, - ABP_TENANT_KEY, USER_INFO_KEY, ROLES_KEY, LOCK_INFO_KEY, @@ -21,7 +20,6 @@ import { pick, omit } from 'lodash-es'; interface BasicStore { [TOKEN_KEY]: string | number | null | undefined; - [ABP_TENANT_KEY]: string; [USER_INFO_KEY]: UserInfo; [ROLES_KEY]: string[]; [LOCK_INFO_KEY]: LockInfo; @@ -51,13 +49,6 @@ function initPersistentMemory() { } export class Persistent { - static setTenant(value: any) { - ls.set(ABP_TENANT_KEY, value); - } - - static getTenant() { - return ls.get(ABP_TENANT_KEY); - } static getLocal(key: LocalKeys) { return localMemory.get(key)?.value as Nullable; diff --git a/apps/vue/src/utils/dateUtil.ts b/apps/vue/src/utils/dateUtil.ts index dad892374..71c39a614 100644 --- a/apps/vue/src/utils/dateUtil.ts +++ b/apps/vue/src/utils/dateUtil.ts @@ -7,14 +7,14 @@ const DATE_TIME_FORMAT = 'YYYY-MM-DD HH:mm:ss'; const DATE_FORMAT = 'YYYY-MM-DD'; export function formatToDateTime( - date: string | dayjs.Dayjs | undefined = undefined, + date: string | Date | dayjs.Dayjs | undefined = undefined, format = DATE_TIME_FORMAT, ): string { return dayjs(date).format(format); } export function formatToDate( - date: string | dayjs.Dayjs | undefined = undefined, + date: string | Date | dayjs.Dayjs | undefined = undefined, format = DATE_FORMAT, ): string { return dayjs(date).format(format); diff --git a/apps/vue/src/views/account/center/Cloud.vue b/apps/vue/src/views/account/center/Cloud.vue index 5b8fdb9a2..dded8e45a 100644 --- a/apps/vue/src/views/account/center/Cloud.vue +++ b/apps/vue/src/views/account/center/Cloud.vue @@ -15,7 +15,7 @@ - diff --git a/apps/vue/src/views/account/center/FileList.vue b/apps/vue/src/views/account/center/FileList.vue index 8f2efaebf..6c3e6bd4e 100644 --- a/apps/vue/src/views/account/center/FileList.vue +++ b/apps/vue/src/views/account/center/FileList.vue @@ -155,6 +155,7 @@ path: record.path, object: record.name, }).then(() => { + createMessage.success(L('SuccessfullyDeleted')); deleteTableDataRecord(record.name); props.selectGroup === 'private' && emit('delete:file:private', record); props.selectGroup === 'public' && emit('delete:file:public', record); diff --git a/apps/vue/src/views/account/center/index.vue b/apps/vue/src/views/account/center/index.vue index 96fad12ca..1056b314f 100644 --- a/apps/vue/src/views/account/center/index.vue +++ b/apps/vue/src/views/account/center/index.vue @@ -1,18 +1,18 @@ - - - - + + + + {{ userInfo.realName ?? userInfo.username }} {{ userInfo.description }} - - - - + + + + - + @@ -29,63 +29,47 @@ -