This commit is contained in:
parent
2df680eb54
commit
6fe6651067
|
@ -140,41 +140,27 @@ const login = () => {
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
// let auth__code = env == "pc" ? res.auth_code : res.code;
|
// let auth__code = env == "pc" ? res.auth_code : res.code;
|
||||||
// console.log( 555,res, auth__code);
|
// console.log( 555,res, auth__code);
|
||||||
http
|
if (res.auth_code) {
|
||||||
.post(`/api/sign_in/one_click_login?authCode=${res.auth_code}`)
|
http
|
||||||
.then((response) => {
|
.post(`/api/sign_in/one_click_login?authCode=${res.auth_code}`)
|
||||||
if (response.code == 200) {
|
.then((response) => {
|
||||||
tools.data.set("token", response.data.token);
|
if (response.code == 200) {
|
||||||
tools.data.set("type", 1);
|
tools.data.set("token", response.data.token);
|
||||||
// console.log(1111, response);
|
tools.data.set("type", 1);
|
||||||
// this.loading = false;
|
// console.log(1111, response);
|
||||||
// // 登录成功
|
} else {
|
||||||
// if (!response.data.is_bind) {
|
// 跳转未绑定页面
|
||||||
// this.isShowBind = true;
|
router.push({
|
||||||
// this.tenantUserId = response.data.tenant_user_id;
|
path: `error/noPermission`,
|
||||||
// } else {
|
});
|
||||||
// var user = {
|
}
|
||||||
// token: response.data.token,
|
});
|
||||||
// name: response.data.name,
|
}
|
||||||
// id: response.data.id,
|
|
||||||
// };
|
|
||||||
// tools.data.set("user", user);
|
|
||||||
// this.$message.success("登录成功");
|
|
||||||
// this.$router.replace("/home");
|
|
||||||
// }
|
|
||||||
|
|
||||||
} else {
|
|
||||||
// 跳转未绑定页面
|
|
||||||
router.push({
|
|
||||||
path: `error/noPermission`,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
var token = getCookie("lytoken");
|
// var token = getCookie("lytoken");
|
||||||
// var token = '6b0e380b4a8f46baae4923f83faf670d';
|
var token = '6b0e380b4a8f46baae4923f83faf670d';
|
||||||
// console.log('token', token)
|
// console.log('token', token)
|
||||||
if (!token) {
|
if (!token) {
|
||||||
window.location.href =
|
window.location.href =
|
||||||
|
|
|
@ -292,16 +292,16 @@ const data = reactive({
|
||||||
width: "50",
|
width: "50",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "补助类型",
|
label: "服务类型",
|
||||||
property: "bzlx",
|
property: "bzlx",
|
||||||
width: "100",
|
width: "100",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "补助对象或条件",
|
label: "服务对象或条件",
|
||||||
property: "bzdx",
|
property: "bzdx",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "补助标准或内容",
|
label: "服务标准或内容",
|
||||||
property: "bzbz",
|
property: "bzbz",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue