appId, | appId, | ||||
getToken, | getToken, | ||||
wechatAppID, | wechatAppID, | ||||
getOpenId | |||||
getOpenId,logout | |||||
} from "@/utils/network/api"; | } from "@/utils/network/api"; | ||||
import { | import { | ||||
stringToJson | stringToJson | ||||
url: "/login/login" | url: "/login/login" | ||||
}); | }); | ||||
}, | }, | ||||
/*退出登录请求*/ | |||||
logoutRequest() { | |||||
const options = { | |||||
type: 2, | |||||
data: {}, | |||||
method: "POST", | |||||
showLoading: true, | |||||
}; | |||||
requestNew(logout, options).then((res) => { | |||||
this.loginOutNoConfirm() | |||||
}) | |||||
}, | |||||
/*退出登录*/ | /*退出登录*/ | ||||
loginOut() { | loginOut() { | ||||
confirm( | confirm( | ||||
"确定要退出登录吗?", | "确定要退出登录吗?", | ||||
() => { | () => { | ||||
this.loginOutNoConfirm(); | |||||
this.logoutRequest(); | |||||
}, | }, | ||||
"提示", | "提示", | ||||
true | true |
export const vehicleTypeCount = "/iaw/aftersale/vehicleInformationChange/vehicleTypeCount" //车型计算 | export const vehicleTypeCount = "/iaw/aftersale/vehicleInformationChange/vehicleTypeCount" //车型计算 | ||||
export const logout = "/iaw/portal/logout" //退出登录 |