mirror of
https://github.com/chaos-zhu/easynode.git
synced 2026-10-06 15:13:18 +08:00
fix: update
This commit is contained in:
@@ -52,7 +52,12 @@
|
||||
>
|
||||
<template #default="scope">{{ formatProxyType(scope.row) }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column v-if="props.columnSettings.expired" property="expired" label="到期时间" sortable />
|
||||
<el-table-column
|
||||
v-if="props.columnSettings.expired"
|
||||
property="expired"
|
||||
label="到期时间"
|
||||
sortable
|
||||
/>
|
||||
<el-table-column
|
||||
v-if="props.columnSettings.consoleUrl"
|
||||
property="consoleUrl"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import assert from 'node:assert/strict'
|
||||
import { compareHostNames } from '../src/utils/host-sort.js'
|
||||
|
||||
const sortHosts = (hosts) => [...hosts].sort(compareHostNames)
|
||||
const sortHosts = (hosts) => [...hosts,].sort(compareHostNames)
|
||||
const sortedNames = (hosts) => sortHosts(hosts).map(({ name }) => name)
|
||||
|
||||
assert.deepEqual(
|
||||
@@ -10,7 +10,7 @@ assert.deepEqual(
|
||||
{ id: '1', name: 't1' },
|
||||
{ id: '2', name: 't2' },
|
||||
]),
|
||||
['t1', 't2', 't10']
|
||||
['t1', 't2', 't10',]
|
||||
)
|
||||
|
||||
assert.deepEqual(
|
||||
@@ -20,7 +20,7 @@ assert.deepEqual(
|
||||
{ id: '3', name: '闲置2' },
|
||||
{ id: '1', name: '闲鱼' },
|
||||
]),
|
||||
['闲鱼', '闲云', '闲置2', '闲置10']
|
||||
['闲鱼', '闲云', '闲置2', '闲置10',]
|
||||
)
|
||||
|
||||
assert.deepEqual(
|
||||
@@ -28,7 +28,7 @@ assert.deepEqual(
|
||||
{ id: 'b', name: 'T1', index: 100 },
|
||||
{ id: 'a', name: 't1', index: 1 },
|
||||
]).map(({ id }) => id),
|
||||
['a', 'b']
|
||||
['a', 'b',]
|
||||
)
|
||||
|
||||
assert.deepEqual(
|
||||
@@ -37,7 +37,7 @@ assert.deepEqual(
|
||||
{ id: 'a' },
|
||||
{ id: 'c', name: 'server' },
|
||||
]).map(({ id }) => id),
|
||||
['a', 'b', 'c']
|
||||
['a', 'b', 'c',]
|
||||
)
|
||||
|
||||
assert.deepEqual(
|
||||
@@ -45,7 +45,7 @@ assert.deepEqual(
|
||||
{ id: 'later', name: 't10', index: 100 },
|
||||
{ id: 'earlier', name: 't2', index: 1 },
|
||||
]).map(({ id }) => id),
|
||||
['earlier', 'later']
|
||||
['earlier', 'later',]
|
||||
)
|
||||
|
||||
console.log('✅ 实例名称排序测试全部通过')
|
||||
|
||||
Reference in New Issue
Block a user