🦀️ fix: 修复bug

This commit is contained in:
wangsongsole 2024-02-28 15:43:44 +08:00
parent f2355e099f
commit 4e5641d5e9
2 changed files with 4 additions and 4 deletions

View File

@ -834,7 +834,7 @@ export default class acclist extends React.Component {
rowItemClick(row, rowIndex) {
// 兑换码
if (this.props.keyType === 1) {
if (row.recharge_type === 2) {
if (row.recharge_type == 2) {
this.setState({
draw_title: "编辑组合商品",
rowIndex: rowIndex,
@ -1243,7 +1243,7 @@ export default class acclist extends React.Component {
placeholder="请输入数量"
type="number"
width={120}
disabled={rowData.recharge_type === 2}
disabled={rowData.recharge_type == 2}
value={rowData.restrict}
onChange={(e) => {
this.onRestrict(e, rowData, rowIndex)

View File

@ -571,7 +571,7 @@ const UseKeyAddEdit = () => {
//
const rowEditClick = (row, rowIndex) => {
if (state.keyType === 1) {
if (row.recharge_type === 2) {
if (row.recharge_type == 2) {
setState({
draw_title: "编辑组合商品",
rowIndex: rowIndex,
@ -1172,7 +1172,7 @@ const UseKeyAddEdit = () => {
onChange={(e) => {
onBindNum(e, rowData, rowIndex)
}}
disabled={rowData.disabled || rowData.recharge_type === 2}
disabled={rowData.disabled || rowData.recharge_type == 2}
/>
)
}