1/** 2 * éåºç»å½å½æ° 3 * @param returnIndex 妿åéåºç»å½ä¹å叿è¿å主页 åå°æ¤è®¾ç½®ä¸º true 4 * @param showMassage éè¦æ¾ç¤ºçæç¤ºä¿¡æ¯ 5 * @param userConf ç¨æ·ä¿¡æ¯ json 对象 6 */ 7function logout(returnIndex = true, showMassage = "æ¨å·²éåºç»å½!!!", userConf = my) { 8 const p = { 9 id: parseInt(userConf.id), 10 userName: userConf.name 11 } 12 if (p.id !== undefined && p.userName !== undefined) { 13 deleteCookie(WEB_CONF.COOKIE_ID, showMassage); 14 updateLogoutStatus(p); 15 if (returnIndex) { 16 setTimeout(() => window.location.href = 'index.html', 3000); 17 } 18 } 19} 20 21/** 22 * æ´æ°å½åè´¦å·ç¶æ 23 * @param json {{id, userName}} 24 */ 25function updateLogoutStatus(json) { 26 axios({ 27 url: backEnd_host_href() + '/' + WEB_CONF.CONTROLLER_USER + WEB_CONF.CONTROLLER_USER_LOG_OUT, 28 params: json 29 }).then( 30 () => { 31 my = undefined; 32 } 33 ); 34} 35
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.