Преглед на файлове

退出登录

修改样式逻辑
yangteng преди 1 седмица
родител
ревизия
b457795d43
променени са 2 файла, в които са добавени 15 реда и са изтрити 2 реда
  1. 14
    2
      stores/user.js
  2. 1
    0
      utils/network/api.js

+ 14
- 2
stores/user.js Целия файл

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

+ 1
- 0
utils/network/api.js Целия файл





export const vehicleTypeCount = "/iaw/aftersale/vehicleInformationChange/vehicleTypeCount" //车型计算 export const vehicleTypeCount = "/iaw/aftersale/vehicleInformationChange/vehicleTypeCount" //车型计算
export const logout = "/iaw/portal/logout" //退出登录

Loading…
Отказ
Запис