This commit is contained in:
duanxiaohai 2024-09-26 09:08:03 +08:00
parent 2df680eb54
commit 6fe6651067
2 changed files with 21 additions and 35 deletions

View File

@ -140,6 +140,7 @@ 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);
if (res.auth_code) {
http http
.post(`/api/sign_in/one_click_login?authCode=${res.auth_code}`) .post(`/api/sign_in/one_click_login?authCode=${res.auth_code}`)
.then((response) => { .then((response) => {
@ -147,22 +148,6 @@ const login = () => {
tools.data.set("token", response.data.token); tools.data.set("token", response.data.token);
tools.data.set("type", 1); tools.data.set("type", 1);
// console.log(1111, response); // console.log(1111, response);
// this.loading = false;
// //
// if (!response.data.is_bind) {
// this.isShowBind = true;
// this.tenantUserId = response.data.tenant_user_id;
// } 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 { } else {
// //
router.push({ router.push({
@ -170,11 +155,12 @@ const login = () => {
}); });
} }
}); });
}
}) })
.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 =

View File

@ -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",
}, },
{ {