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