mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-09 02:46:46 +08:00
提交退出登录接口
This commit is contained in:
@@ -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});
|
||||
|
||||
Reference in New Issue
Block a user