mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
Merge pull request #72 from cyyjs/master
fix: 修复themeColor大于10时,浏览器崩溃问题
This commit is contained in:
commit
e7d0093742
@ -129,7 +129,7 @@ export default defineComponent({
|
||||
|
||||
const themeColors = computed(() => {
|
||||
let colors: string[] = []
|
||||
if (props.themeColor.length === 10) colors = props.themeColor
|
||||
if (props.themeColor.length >= 10) colors = props.themeColor
|
||||
else if (props.themeColor.length === 1) colors = tinycolor(props.themeColor[0]).analogous(10).map(color => color.toHexString())
|
||||
else {
|
||||
const len = props.themeColor.length
|
||||
|
Loading…
x
Reference in New Issue
Block a user