bug修复
This commit is contained in:
@@ -116,7 +116,7 @@ const useDictStore = defineStore("dict", () => {
|
||||
if (state[dictType] && Array.isArray(state[dictType])) {
|
||||
for (let i = 0; i < state[dictType].length; i++) {
|
||||
let element = state[dictType][i];
|
||||
if (element.value === value) {
|
||||
if (String(element.value) === String(value)) {
|
||||
return element.label
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user