mirror of
https://gitee.com/dromara/go-view.git
synced 2025-02-24 16:22:57 +08:00
fix: 解决删除颜色之后自动选择的错误
This commit is contained in:
parent
82d800f943
commit
61c43df51b
@ -204,8 +204,8 @@ const deleteHandle = (index: number) => {
|
||||
colorList.splice(index, 1)
|
||||
chartEditStore.setEditCanvasConfig(EditCanvasConfigEnum.CHART_CUSTOM_THEME_COLOR_INFO, cloneDeep(colorList))
|
||||
nextTick(() => {
|
||||
if (index) {
|
||||
selectHandle(colorList[index - 1])
|
||||
if (colorList.length) {
|
||||
selectHandle(colorList[index - 1 > -1 ? index - 1 : index])
|
||||
} else {
|
||||
// 已清空
|
||||
selectColor.selectInfo = undefined
|
||||
|
Loading…
Reference in New Issue
Block a user