fix: agentBox protocol 统一参数

This commit is contained in:
@changcode
2021-10-08 14:08:00 +08:00
parent 4f53c91128
commit 3be22533ec
2 changed files with 2 additions and 6 deletions

View File

@@ -107,11 +107,11 @@ export const agent2 = {
protocol: [ protocol: [
{ {
label: 'http', label: 'http',
value: 1 value: 'http'
}, },
{ {
label: 'https', label: 'https',
value: 2 value: 'https'
} }
] ]

View File

@@ -47,10 +47,6 @@
</div> </div>
</el-popover> </el-popover>
</span> </span>
<span v-else-if="item.prop === 'protocol'">
<span v-if="scope.row[item.prop] === 1">http</span>
<span v-if="scope.row[item.prop] === 2">https</span>
</span>
<span v-else-if="scope.row[item.prop]">{{scope.row[item.prop]}}</span> <span v-else-if="scope.row[item.prop]">{{scope.row[item.prop]}}</span>
<template v-else>-</template> <template v-else>-</template>
</template> </template>