Merge pull request #98 from hotlcc/develop-20240415-页面优化

This commit is contained in:
jxxghp
2024-04-15 10:06:56 +08:00
committed by GitHub
3 changed files with 6 additions and 5 deletions

View File

@@ -4,6 +4,11 @@ import { useTheme } from 'vuetify'
import store from './store'
import { fixArrayAt } from '@/@core/utils/compatibility'
// 修复低版本Safari等浏览器数组不支持at函数的问题
fixArrayAt()
// 提示框
const $toast = useToast()

View File

@@ -5,7 +5,6 @@ import { useToast } from 'vue-toast-notification'
import api from '@/api'
import type { TransferHistory } from '@/api/types'
import ReorganizeForm from '@/components/form/ReorganizeForm.vue'
import { fixArrayAt } from '@/@core/utils/compatibility'
// 提示框
const $toast = useToast()
@@ -351,9 +350,6 @@ const dropdownItems = ref([
},
},
])
// 修复低版本Safari等浏览器数组不支持at函数的问题
fixArrayAt()
</script>
<template>

View File

@@ -96,7 +96,7 @@ async function loadNotificationSettings() {
try {
const result1: { [key: string]: any } = await api.get('system/setting/MESSAGER')
if (result1.success)
selectedChannels.value = result1.data?.value?.split(',')
selectedChannels.value = result1.data && result1.data.value ? result1.data.value.split(',') : []
const result2: { [key: string]: any } = await api.get('system/env')
if (result2.success) {