error content:
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
Technology used in the project
node+webpack+vue+vue-router
reproduction process:
the opening page looks like this:
"" id
the address bar remains unchanged after closing the pop-up window. Refresh the page at this time, and the error will be reported when you open the pop-up window
excuse me:
(1) how is this error caused?
is it because I use the JSON.parse method?
(2) how to correct the address bar without parameters after closing the pop-up window