mirror of
https://github.com/continew-org/continew-admin.git
synced 2026-01-01 08:57:12 +08:00
style: 减少前端部分 warning 提示
This commit is contained in:
@@ -9,14 +9,10 @@ const useDictStore = defineStore('dict', {
|
||||
if (_name == null || _name === '') {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
for (let i = 0; i < this.dict.length; i += 1) {
|
||||
if (this.dict[i].name === _name) {
|
||||
return this.dict[i].detail;
|
||||
}
|
||||
for (let i = 0; i < this.dict.length; i += 1) {
|
||||
if (this.dict[i].name === _name) {
|
||||
return this.dict[i].detail;
|
||||
}
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
}
|
||||
return null;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user