Commit a867e02d authored by wildfirecode13's avatar wildfirecode13

u

parent 5d5ca03a
...@@ -21,6 +21,13 @@ function getParams() { ...@@ -21,6 +21,13 @@ function getParams() {
} }
export const getUnionid = () => { export const getUnionid = () => {
console.log('getParams',getParams()); try {
return getParams().unionid; console.log('getParams', getParams());
const unionid = getParams().unionid;
localStorage.setItem('unionid',unionid);
return unionid;
} catch (error) {
return localStorage.getItem('unionid');;
}
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment