Skip to content

Commit

Permalink
解决el-switch值绑定出现的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
xuexiangjys committed Apr 25, 2019
1 parent a045147 commit ffaf7f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/views/add/newVersion.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
placeholder="请输入应用版本号,例如:24"></el-input>
</el-form-item>
<el-form-item label="是否强制更新" prop="updateStatus">
<el-switch v-model="appForm.updateStatus" inactive-value="1" active-value="2"></el-switch>
<el-switch v-model="appForm.updateStatus" :inactive-value="1" :active-value="2"></el-switch>
</el-form-item>
<el-form-item label="更新内容" prop="modifyContent">
<el-input type="textarea" v-model="appForm.modifyContent" placeholder="请输入更新日志..."></el-input>
Expand Down
2 changes: 1 addition & 1 deletion src/views/list/versions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
placeholder="请输入应用版本号,例如:24"></el-input>
</el-form-item>
<el-form-item label="是否强制更新" prop="updateStatus">
<el-switch v-model="selectApp.updateStatus" inactive-value="1" active-value="2"></el-switch>
<el-switch v-model="selectApp.updateStatus" :inactive-value="1" :active-value="2"></el-switch>
</el-form-item>
<el-form-item label="发布日期" prop="uploadTime">
<el-date-picker v-model="selectApp.uploadTime" align="right" type="date" placeholder="选择日期"
Expand Down

0 comments on commit ffaf7f7

Please sign in to comment.