mirror of
https://gitee.com/y_project/RuoYi-Vue.git
synced 2026-02-04 01:15:06 +08:00
优化代码
This commit is contained in:
@ -65,10 +65,7 @@ export function validEmail(email) {
|
||||
* @returns {Boolean}
|
||||
*/
|
||||
export function isString(str) {
|
||||
if (typeof str === 'string' || str instanceof String) {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
return typeof str === 'string' || str instanceof String;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user