Skip to content

Commit 57cfedf

Browse files
author
piexlmax(奇淼
committed
typo修复,正则字符串修复
1 parent 50b1d21 commit 57cfedf

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

server/resource/autocode_template/web/table.vue.tpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ const sortChange = ({ prop, order }) => {
455455
456456
let sort = sortMap[prop]
457457
if(!sort){
458-
sort = prop.replace(/[A-Z]/g, match => _${match.toLowerCase()})
458+
sort = prop.replace(/[A-Z]/g, match => `_${match.toLowerCase()}`)
459459
}
460460
461461
searchInfo.value.sort = sort

web/src/view/superAdmin/authority/authority.vue

+2-3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
type="primary"
4343
link
44-
@click="opdendrawer(scope.row)"
44+
@click="openDrawer(scope.row)"
4545
>设置权限</el-button>
4646
<el-button
4747
icon="plus"
@@ -135,7 +135,6 @@
135135
<el-drawer
136136
v-if="drawer"
137137
v-model="drawer"
138-
custom-class="auth-drawer"
139138
:with-header="false"
140139
size="40%"
141140
title="角色配置"
@@ -279,7 +278,7 @@ const copyAuthorityFunc = (row) => {
279278
copyForm.value = row
280279
dialogFormVisible.value = true
281280
}
282-
const opdendrawer = (row) => {
281+
const openDrawer = (row) => {
283282
drawer.value = true
284283
activeRow.value = row
285284
}

0 commit comments

Comments
 (0)