【功能优化】全局:DictTag 的 `default` 情况下,使用 `info` 替代,避免浏览器 warning 警告
parent
8ed2afb712
commit
0704672ad3
|
|
@ -22,8 +22,8 @@ export default defineComponent({
|
||||||
const dictOptions = getDictOptions(dictType)
|
const dictOptions = getDictOptions(dictType)
|
||||||
dictOptions.forEach((dict: DictDataType) => {
|
dictOptions.forEach((dict: DictDataType) => {
|
||||||
if (dict.value === value) {
|
if (dict.value === value) {
|
||||||
if (dict.colorType + '' === 'primary' || dict.colorType + '' === 'default') {
|
if (dict.colorType + '' === 'default') {
|
||||||
dict.colorType = ''
|
dict.colorType = 'info'
|
||||||
}
|
}
|
||||||
dictData.value = dict
|
dictData.value = dict
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue