| | |
| | | } |
| | | |
| | | 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 || [] |
| | | sessionStorage.setItem('app_colors', JSON.stringify(res.data || [])) |
| | | _this.resetColor(res.data || []) |
| | | that.resetColor(res.data || []) |
| | | } |
| | | } else { |
| | | notification.warning({ |