diff --git a/src/components/case/index.vue b/src/components/case/index.vue index 78a6cd2..903fc4f 100644 --- a/src/components/case/index.vue +++ b/src/components/case/index.vue @@ -643,9 +643,9 @@ export default { getCookie(cookie_name) { //获取cookie中指定key的value var allcookies = document.cookie; //索引长度,开始索引的位置 - var cookie_pos = allcookies.indexOf(cookie_name); // 如果找到了索引,就代表cookie存在,否则不存在 + var cookie_pos = allcookies.indexOf(cookie_name); //如果找到了索引,就代表cookie存在,否则不存在 if (cookie_pos != -1) { - // 把cookie_pos放在值的开始,只要给值加1即可 + //把cookie_pos放在值的开始,只要给值加1即可 //计算取cookie值得开始索引,加的1为“=” cookie_pos = cookie_pos + cookie_name.length + 1; //计算取cookie值得结束索引 var cookie_end = allcookies.indexOf(";", cookie_pos); diff --git a/src/pages/lobbyManager/list/index.vue b/src/pages/lobbyManager/list/index.vue index c636759..7a52ec3 100644 --- a/src/pages/lobbyManager/list/index.vue +++ b/src/pages/lobbyManager/list/index.vue @@ -1,8 +1,9 @@