优化字典类
This commit is contained in:
@@ -9,7 +9,7 @@ const $dict = {
|
||||
this.url = config?.url || this.url
|
||||
},
|
||||
dicts() {
|
||||
let dicts = uni.getStorageSync('dicts')
|
||||
let dicts = uni.getStorageSync('dicts') || null
|
||||
typeof dicts == "string" ? (dicts = JSON.parse(dicts)) : dicts
|
||||
return dicts || [];
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user