| | |
| | | this.resetVideo(result.data || []) |
| | | } else if (card.typecharone === 'color') { |
| | | window.GLOB.app_colors = result.data || [] |
| | | sessionStorage.setItem('app_colors', JSON.stringify(result.data || [])) |
| | | this.resetColor(result.data || []) |
| | | } |
| | | this.setState({editvisible: false}) |
| | |
| | | } |
| | | |
| | | deleteSource = (item) => { |
| | | const _this = this |
| | | const that = this |
| | | |
| | | confirm({ |
| | | title: '确定删除吗?', |
| | |
| | | if (res.status) { |
| | | if (item.typecharone === 'image') { |
| | | window.GLOB.app_pictures = res.data || [] |
| | | _this.resetPicture(res.data || []) |
| | | that.resetPicture(res.data || []) |
| | | } else if (item.typecharone === 'video') { |
| | | window.GLOB.app_videos = res.data || [] |
| | | _this.resetVideo(res.data || []) |
| | | that.resetVideo(res.data || []) |
| | | } else if (item.typecharone === 'color') { |
| | | window.GLOB.app_colors = res.data || [] |
| | | _this.resetColor(res.data || []) |
| | | sessionStorage.setItem('app_colors', JSON.stringify(res.data || [])) |
| | | that.resetColor(res.data || []) |
| | | } |
| | | } else { |
| | | notification.warning({ |