forked from ruoyi/RuoYi-Vue
用户头像http(s)链接支持
This commit is contained in:
@@ -1,4 +1,26 @@
|
||||
/**
|
||||
* <20>ж<EFBFBD>value<75>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD>Ƿ<EFBFBD>Ϊ<EFBFBD><CEAA>
|
||||
* @param {string} value
|
||||
* @returns {Boolean}
|
||||
*/
|
||||
export function isEmpty(value) {
|
||||
if (value == null || value == "" || value == undefined || value == "undefined") {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* <20>ж<EFBFBD>url<72>Ƿ<EFBFBD><C7B7><EFBFBD>http<74><70>https
|
||||
* @param {string} url
|
||||
* @returns {Boolean}
|
||||
*/
|
||||
export function isHttp(url) {
|
||||
return url.indexOf('http://') !== -1 || url.indexOf('https://') !== -1
|
||||
}
|
||||
|
||||
/**
|
||||
* <20>ж<EFBFBD>path<74>Ƿ<EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD><EFBFBD>
|
||||
* @param {string} path
|
||||
* @returns {Boolean}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user