调试接口
This commit is contained in:
@ -135,4 +135,15 @@ export function copy(data: any) {
|
||||
toast.info('已复制到剪贴板')
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 随机标签颜色
|
||||
* @param index 索引
|
||||
* @returns
|
||||
*/
|
||||
export function randomLabelColor (index: number) {
|
||||
const tagColors = ['#40AE36', '#F55726']
|
||||
return tagColors[index % tagColors.length]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user