lis字段管理提交
This commit is contained in:
parent
8793872f9d
commit
e9ed094cb3
@ -7,12 +7,12 @@ const useDictStore = defineStore(
|
|||||||
actions: {
|
actions: {
|
||||||
// 获取字典
|
// 获取字典
|
||||||
getDict(_key) {
|
getDict(_key) {
|
||||||
if (_key == null && _key == "") {
|
if (_key == null && _key === "") {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
for (let i = 0; i < this.dict.length; i++) {
|
for (let i = 0; i < this.dict.length; i++) {
|
||||||
if (this.dict[i].key == _key) {
|
if (this.dict[i].key === _key) {
|
||||||
return this.dict[i].value;
|
return this.dict[i].value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -34,7 +34,7 @@ const useDictStore = defineStore(
|
|||||||
var bln = false;
|
var bln = false;
|
||||||
try {
|
try {
|
||||||
for (let i = 0; i < this.dict.length; i++) {
|
for (let i = 0; i < this.dict.length; i++) {
|
||||||
if (this.dict[i].key == _key) {
|
if (this.dict[i].key === _key) {
|
||||||
this.dict.splice(i, 1);
|
this.dict.splice(i, 1);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user