Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default sxzz(
{
rules: {
'unicorn/filename-case': 'off',
'unicorn/no-array-reverse': 'off',
'@eslint-community/eslint-comments/no-unlimited-disable': 'off', // 允许 eslint-disable 不指定规则
},
},
Expand Down
2 changes: 1 addition & 1 deletion packages/business/src/components/logs/NodeLog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ export default {
}
queryMonitoringLogs(filter)
.then((data = {}) => {
const items = this.getFormatRow(data.items?.toReversed())
const items = this.getFormatRow(data.items?.reverse())
this.oldPageObj.total = data.total || 0
this.oldPageObj.page = filter.page

Expand Down
2 changes: 1 addition & 1 deletion packages/component/src/theme-toggle/ThemeToggle copy.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const changeTheme = async (mode: 'light' | 'dark' | 'auto') => {
]
const animate = document.documentElement.animate(
{
clipPath: isDark ? clipPath.toReversed() : clipPath,
clipPath: isDark ? [...clipPath].reverse() : clipPath,
},
{
duration: 450,
Expand Down
2 changes: 1 addition & 1 deletion packages/component/src/theme-toggle/ThemeToggle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const changeTheme = (mode: 'light' | 'dark' | 'auto') => {
]
const animate = document.documentElement.animate(
{
clipPath: state.value === 'dark' ? clipPath.toReversed() : clipPath,
clipPath: state.value === 'dark' ? [...clipPath].reverse() : clipPath,
},
{
duration: 450,
Expand Down
Loading