Skip to content

Commit

Permalink
修复路由列表开关不显示的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Dot-Liu committed Jun 21, 2022
1 parent 0078efe commit 8a4facd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions builds/resources/tpl/router_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ <h1 class="h2">路由列表</h1>
let d = res.data
return d
}
// function statusSwitch(value, row, index,field){
//
// if (row["disable"]) {
// return `<input value="${row.name}" name="disable" type="checkbox" checked />`
// }
// return `<input value="${row.name}" name="disable" type="checkbox" />`
// }
function statusSwitch(value, row, index,field){

if (row["disable"]) {
return `<input value="${row.name}" name="disable" type="checkbox" checked />`
}
return `<input value="${row.name}" name="disable" type="checkbox" />`
}

function detailFormatter(name,data) {
let content = ""
Expand Down

0 comments on commit 8a4facd

Please sign in to comment.