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:
@@ -93,7 +93,12 @@ const updateUser = function(data) {
|
||||
|
||||
/**退出*/
|
||||
const logout = function() {
|
||||
return ajax.postJson('/userbasic/logout',{from:'h5'});
|
||||
let plat='h5';
|
||||
var ua = navigator.userAgent.toLowerCase();
|
||||
if (ua.match(/MicroMessenger/i) == "micromessenger") {
|
||||
plat='wechat';
|
||||
}
|
||||
return ajax.postJson('/userbasic/logout',{"from":plat});
|
||||
}
|
||||
|
||||
export default {
|
||||
|
||||
Reference in New Issue
Block a user