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,41 +140,27 @@ const login = () => {
.then((res) => {
// let auth__code = env == "pc" ? res.auth_code : res.code;
// console.log( 555,res, auth__code);
http
.post(`/api/sign_in/one_click_login?authCode=${res.auth_code}`)
.then((response) => {
if (response.code == 200) {
tools.data.set("token", response.data.token);
tools.data.set("type", 1);
// 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 {
//
router.push({
path: `error/noPermission`,
});
}
});
if (res.auth_code) {
http
.post(`/api/sign_in/one_click_login?authCode=${res.auth_code}`)
.then((response) => {
if (response.code == 200) {
tools.data.set("token", response.data.token);
tools.data.set("type", 1);
// console.log(1111, response);
} else {
//
router.push({
path: `error/noPermission`,
});
}
});
}
})
.catch((err) => {
console.log(err);
var token = getCookie("lytoken");
// var token = '6b0e380b4a8f46baae4923f83faf670d';
// var token = getCookie("lytoken");
var token = '6b0e380b4a8f46baae4923f83faf670d';
// console.log('token', token)
if (!token) {
window.location.href =

View File

@ -292,16 +292,16 @@ const data = reactive({
width: "50",
},
{
label: "补助类型",
label: "服务类型",
property: "bzlx",
width: "100",
},
{
label: "补助对象或条件",
label: "服务对象或条件",
property: "bzdx",
},
{
label: "补助标准或内容",
label: "服务标准或内容",
property: "bzbz",
},
{