mirror of
https://github.com/zuiidea/antd-admin
synced 2026-11-17 21:25:06 +00:00
userlogin
This commit is contained in:
@@ -40,10 +40,24 @@ Date.prototype.format = function (format) {
|
||||
return format
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param {String}
|
||||
* @return {String}
|
||||
*/
|
||||
|
||||
const queryURL = (name) => {
|
||||
let reg = new RegExp(`(^|&)${name}=([^&]*)(&|$)`, 'i')
|
||||
let r = window.location.search.substr(1).match(reg)
|
||||
if (r != null) return decodeURI(r[2])
|
||||
return null
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
config,
|
||||
menu,
|
||||
request,
|
||||
color,
|
||||
classnames,
|
||||
queryURL,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user