Commit 6bf8be8c by 李伟康

fix(env): 更新环境配置默认值并修复单位显示逻辑

- 将环境索引从开发环境(1)改为测试环境(2)
- 修复详情页面中数值为'-'时不显示单位的问题
- 统一两个日报详情页面的单位显示条件判断逻辑
1 parent d75ca9dc
const target = ['ip', 'dev', 'uat', 'prod', 'beta']
const index = 1
const index = 2
/**
*
0本地
......
......@@ -37,7 +37,7 @@
<view class="label">{{ item.label }}</view>
<view class="value">
<text>{{ formatValue(item.value) }}</text>
<template v-if="item.unit">
<template v-if="item.unit && formatValue(item.value) != '-'">
<text class="unit">{{ item.unit }}</text>
</template>
</view>
......
......@@ -25,7 +25,7 @@
<view class="label">{{ item.label }}</view>
<view class="value flex">
<text class="value-text">{{ formatValue(item.value) }}</text>
<template v-if="item.unit">
<template v-if="item.unit && formatValue(item.value) != '-'">
<text class="unit">{{ item.unit }}</text>
</template>
</view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!