| | |
| | | import { getCodeImg, getOrganizations, webBaseInfo, webGetDataBases } from "@/api/login" |
| | | import Cookies from "js-cookie" |
| | | import { encrypt, decrypt } from '@/utils/jsencrypt' |
| | | |
| | | import { setToken } from "../utils/auth"; |
| | | export default { |
| | | name: "Login", |
| | | data() { |
| | |
| | | created() { |
| | | // this.getCode() |
| | | this.getInfoData() |
| | | this.getCookie() |
| | | this.getCookie() |
| | | }, |
| | | methods: { |
| | | |
| | | |
| | | //语言的选择 |
| | | languageChange() { |
| | | this.loginForm.HCusName = this.tranData.HCusName |
| | |
| | | Cookies.set("username", this.loginForm.username, { expires: 30 }) |
| | | Cookies.set("password", encrypt(this.loginForm.password), { expires: 30 }) |
| | | Cookies.set('rememberMe', this.loginForm.rememberMe, { expires: 30 }) |
| | | |
| | | } else { |
| | | Cookies.remove("HTranSlate") |
| | | Cookies.remove("HOrgName") |