fix: 修复禅道bug

This commit is contained in:
huanghao1412 2024-03-04 18:39:46 +08:00
parent 33a36f3aad
commit abccd32968
2 changed files with 12 additions and 14 deletions

View File

@ -5,14 +5,12 @@
</n-space>
</setting-item-box>
<setting-item-box name="空间ID" :alone="true">
<n-space justify="start">
<n-input
v-model:value="currentObj.space_complete_id"
size="small"
placeholder="请输入空间ID"
clearable
/>
</n-space>
<n-input
v-model:value="currentObj.space_complete_id"
size="small"
placeholder="请输入空间ID"
clearable
/>
</setting-item-box>
</template>

View File

@ -46,13 +46,13 @@ type computeIdsItemType = {
const originStore = useOriginStore()
const systemConstant = originStore.getOriginStore?.user?.systemConstant
let options2
type ItemType = {
label: string,
value: string,
remark: string
}
let options2: ItemType[] = []
if(systemConstant.warn_levels) {
type ItemType = {
label: string,
value: string,
remark: string
}
options2 = systemConstant['warn_levels'].filter((item: ItemType) => item.value !== '').map((item: any) => {
return { label: item.label, value: Number(item.value), remark: item.remark }
})