提交退出登录接口

This commit is contained in:
daihh
2023-07-06 18:28:27 +08:00
parent e5af1fe385
commit c0148bd724
3 changed files with 6 additions and 13 deletions

View File

@@ -95,7 +95,7 @@ const updateUser = function(data) {
const logout = function() {
let plat='h5';
var ua = navigator.userAgent.toLowerCase();
if (ua.match(/MicroMessenger/i) == "micromessenger") {
if(ua.match(/MicroMessenger/i) == "micromessenger") {
plat='wechat';
}
return ajax.postJson('/logout',{"from":plat});