mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-11-29 18:38:32 +08:00
🔨 perf(code): FIX
This commit is contained in:
parent
7344f65dde
commit
1cbd030535
@ -17,7 +17,7 @@
|
||||
7. 【server】优化 用户登录记录操作日志(保证操作监控能记录)
|
||||
8. 【server】修复 系统管理中用户登录日志无法分页
|
||||
9. 【server】优化 Oauth2 支持配置创建账号配置权限组
|
||||
10. 【server】修复 文件发布权限为执行权限、文件发布记录删除无记录日志
|
||||
10. 【server】修复 文件发布权限为执行权限、文件发布记录删除无记录日志 (感谢@蓝枫)
|
||||
|
||||
------
|
||||
|
||||
|
@ -265,6 +265,7 @@
|
||||
destroy-on-close
|
||||
title="配置系统公告"
|
||||
:mask-closable="false"
|
||||
width="50vw"
|
||||
:footer="null"
|
||||
>
|
||||
<notification />
|
||||
|
@ -28,19 +28,23 @@
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { UserNotificationType, getUserNotification, saveUserNotification } from '@/api/user/user-notification'
|
||||
const defaultValue = <UserNotificationType>{
|
||||
const defaultValue = {
|
||||
level: 'info',
|
||||
closable: true,
|
||||
title: '系统公告',
|
||||
enabled: false
|
||||
}
|
||||
} as UserNotificationType
|
||||
|
||||
const temp = ref<UserNotificationType>(defaultValue)
|
||||
|
||||
onMounted(() => {
|
||||
getUserNotification().then((res) => {
|
||||
if (res.code === 200) {
|
||||
if (Object.keys(res.data).length) {
|
||||
temp.value = res.data || defaultValue
|
||||
} else {
|
||||
temp.value = defaultValue
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user