Commit e635e985 authored by 郑磊's avatar 郑磊

更新Cookie的获取方式

parent 04b15ea3
......@@ -3,7 +3,7 @@
*/
const cookies = (() => {
const data = new Map<string, string>()
const parts = document.cookie.split(', ')
const parts = document.cookie.split('; ')
for (let i = 0; i < parts.length; i++) {
const part = parts[i]
let [name] = part.split('=', 1)
......
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