Skip to content

Commit

Permalink
feat: wx check
Browse files Browse the repository at this point in the history
  • Loading branch information
rayhomie committed Nov 18, 2024
1 parent 8263180 commit 0989e27
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
function getTitle(options, value) {
const obj = options.find(item => item.value === value);
var obj = options.find(function (item) {
return item.value === value;
});
if (obj) {
return obj.title;
}
}

export default { getTitle };
default {
export default {
getTitle: getTitle
};
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function getTitle(options, value) {
const obj = options.find(item => item.value === value);
const obj = options.find((item) => item.value === value);
if (obj) {
return obj.title;
}
Expand Down

0 comments on commit 0989e27

Please sign in to comment.