🦀️ fix: 修复bug

This commit is contained in:
wangsongsole 2024-03-12 15:45:27 +08:00
parent 12bf7406b2
commit 0878a204a8
3 changed files with 4 additions and 1 deletions

View File

@ -447,6 +447,7 @@ const Combining = forwardRef((props, ref) => {
{info.channel == 2 ? ( {info.channel == 2 ? (
<FormItem labelname="打开方式" prop="is_webview" id="is_webview" key="is_webview"> <FormItem labelname="打开方式" prop="is_webview" id="is_webview" key="is_webview">
<RadioGroup <RadioGroup
disabled={state.keyPcType !== 2}
onChange={({ target }) => { onChange={({ target }) => {
setInfo({ is_webview: target.value }) setInfo({ is_webview: target.value })
}} }}

View File

@ -822,13 +822,14 @@ export default class addKnockGold extends Component {
)} )}
</RadioGroup> </RadioGroup>
</FormItem> </FormItem>
{this.state.model.channel == 2 && !this.props.combining ? ( {this.state.model.channel == 2 && !this.props.combining && !this.props?.ysf ? (
<FormItem labelname="打开方式" prop="is_webview" id="is_webview" key="is_webview"> <FormItem labelname="打开方式" prop="is_webview" id="is_webview" key="is_webview">
<RadioGroup <RadioGroup
onChange={({ target }) => { onChange={({ target }) => {
this.onHandleChange(target.value, "is_webview") this.onHandleChange(target.value, "is_webview")
}} }}
value={this.state.model.is_webview} value={this.state.model.is_webview}
disabled={!!this.props.data?.id}
> >
<RadioButton value={0}>小程序</RadioButton> <RadioButton value={0}>小程序</RadioButton>
<RadioButton value={1}>公众号</RadioButton> <RadioButton value={1}>公众号</RadioButton>

View File

@ -1058,6 +1058,7 @@ export default class combiningAdd extends React.Component {
{this.state.codeInfo.channel == 2 ? ( {this.state.codeInfo.channel == 2 ? (
<FormItem labelname="打开方式" prop="is_webview" id="is_webview" key="is_webview"> <FormItem labelname="打开方式" prop="is_webview" id="is_webview" key="is_webview">
<RadioGroup <RadioGroup
disabled={this.state.isState !== 1}
onChange={({ target }) => { onChange={({ target }) => {
this.handleChange(target.value, "is_webview") this.handleChange(target.value, "is_webview")
}} }}