新增注册来源功能
This commit is contained in:
@ -175,4 +175,17 @@ export function previewImage(current: string, urls: string[]) {
|
||||
current,
|
||||
urls
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* uri字符串转对象
|
||||
* @param uri
|
||||
* @returns
|
||||
*/
|
||||
export function strToParams(uri: string) :any {
|
||||
let newparams = {}
|
||||
for (let item of uri.split('&')) {
|
||||
newparams[item.split('=')[0]] = item.split('=')[1]
|
||||
}
|
||||
return newparams
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user