From d328bd467ffcb660e81d546a0b242e39320acb6d Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期四, 05 六月 2025 09:53:30 +0800 Subject: [PATCH] 系统名称调整、登录页调整、项目新增发起依据 --- src/utils/validate.js | 26 ++++---------------------- 1 files changed, 4 insertions(+), 22 deletions(-) diff --git a/src/utils/validate.js b/src/utils/validate.js index 9d1b89e..2f80643 100644 --- a/src/utils/validate.js +++ b/src/utils/validate.js @@ -1,26 +1,4 @@ /** - * 鍒ゆ柇value瀛楃涓叉槸鍚︿负绌� - * @param {string} value - * @returns {Boolean} - */ -export function isEmpty(value) { - if (value == null || value == "" || value == undefined || value == "undefined") { - return true; - } - return false; -} - -/** - * 鍒ゆ柇url鏄惁鏄痟ttp鎴杊ttps - * @param {string} url - * @returns {Boolean} - */ -export function isHttp(url) { - return url.indexOf('http://') !== -1 || url.indexOf('https://') !== -1 -} - -/** - * 鍒ゆ柇path鏄惁涓哄閾� * @param {string} path * @returns {Boolean} */ @@ -100,3 +78,7 @@ } return Array.isArray(arg) } + +export function isHttp(url) { + return url.indexOf('http://') !== -1 || url.indexOf('https://') !== -1; +} -- Gitblit v1.8.0