From e3559e6a8f47bc28a4c8c9ef2b9c2c7ee8c799ae Mon Sep 17 00:00:00 2001 From: wangjiahai <1556608@qq.com> Date: Thu, 23 Nov 2023 14:02:48 +0800 Subject: [PATCH] 111 --- common/empty.js | 12 ++++++++++++ common/mixin.js | 7 ------- 2 files changed, 12 insertions(+), 7 deletions(-) create mode 100644 common/empty.js delete mode 100644 common/mixin.js diff --git a/common/empty.js b/common/empty.js new file mode 100644 index 0000000..f44d8fd --- /dev/null +++ b/common/empty.js @@ -0,0 +1,12 @@ +function stringIsEmpty(str) { + return str === undefined || str === null || str === '' +} + +function stringIsNotEmpty(str) { + return !stringIsEmpty(str) +} + +export { + stringIsEmpty, + stringIsNotEmpty +} diff --git a/common/mixin.js b/common/mixin.js deleted file mode 100644 index b6a4eee..0000000 --- a/common/mixin.js +++ /dev/null @@ -1,7 +0,0 @@ -export default { - data() { - return { - - } - } -}