mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-10-17 21:03:07 +08:00
权限控制
This commit is contained in:
8
admin/src/utils/validate.ts
Normal file
8
admin/src/utils/validate.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* @description 判断字符串是否是id=1&name=2这种类型
|
||||
* @param { String } str
|
||||
* @returns { Boolean }
|
||||
*/
|
||||
export function isQuery(str: string) {
|
||||
return /([^?&=]+)=([^?&=]*)/g.test(str)
|
||||
}
|
||||
Reference in New Issue
Block a user