修复回归安全问题并补充验证
This commit is contained in:
@@ -4,7 +4,15 @@
|
||||
<button class="compact-btn" bindtap="addEmployee">新增</button>
|
||||
</view>
|
||||
|
||||
<view class="list">
|
||||
<view wx:if="{{loadError}}" class="card error-card">
|
||||
<text class="error-title">数据加载失败</text>
|
||||
<text class="error-desc">{{errorMessage}}</text>
|
||||
<button class="compact-btn" bindtap="loadEmployees">重试</button>
|
||||
</view>
|
||||
|
||||
<view wx:elif="{{!employees.length}}" class="empty">暂无员工数据</view>
|
||||
|
||||
<view wx:else class="list">
|
||||
<view wx:for="{{employees}}" wx:key="id" class="card employee-card" data-id="{{item.id}}" bindtap="openDetail">
|
||||
<view class="employee-left">
|
||||
<view class="avatar" style="background: {{item.color}};">{{item.shortName}}</view>
|
||||
|
||||
Reference in New Issue
Block a user