From 72c15afb8b300988fb570b1edc6ab67ed123fc88 Mon Sep 17 00:00:00 2001 From: e <2432808546@qq.com> Date: Mon, 29 Nov 2021 18:42:19 +0800 Subject: [PATCH] bug --- src/components/case/index.vue | 4 ++-- src/pages/lobbyManager/list/index.vue | 20 ++++++++++++++------ src/pages/manage/index/index.vue | 2 +- 3 files changed, 17 insertions(+), 9 deletions(-) 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 @@