|
@@ -4,7 +4,7 @@
|
|
|
<el-form ref="refloginForm" class="login-form" :model="formInline" :rules="formRules">
|
|
|
<div class="title-container rowSS">
|
|
|
<el-avatar class="appNav-avatar" :size="36" :src="imgUrl" @error="errorHandler">
|
|
|
- <img src="https://cube.elemecdn.com/e/fd/0fc7d20532fdaf769a25683617711png.png" />
|
|
|
+ <img src="../../assets/home/pc_err.png" />
|
|
|
</el-avatar>
|
|
|
<h3 class="title">{{ title }}</h3>
|
|
|
</div>
|
|
@@ -38,6 +38,7 @@ import { ElMessage } from "element-plus";
|
|
|
import { ObjTy } from "~/common";
|
|
|
import { useUserStore } from "@/store/user";
|
|
|
import MD5 from "blueimp-md5";
|
|
|
+import imgUrl from "@/assets/home/pic_logo.png";
|
|
|
//element valid
|
|
|
const formRules = useElement().formRules;
|
|
|
//form
|
|
@@ -51,8 +52,7 @@ let state: ObjTy = reactive({
|
|
|
otherQuery: {},
|
|
|
redirect: undefined,
|
|
|
});
|
|
|
-const title = ref("系统名称");
|
|
|
-const imgUrl = ref("https://cube.elemecdn.com/");
|
|
|
+const title = ref("深圳机场货运一个码系统");
|
|
|
/* listen router change */
|
|
|
const route = useRoute();
|
|
|
let getOtherQuery = (query: any) => {
|
|
@@ -81,10 +81,10 @@ onBeforeMount(() => {
|
|
|
});
|
|
|
|
|
|
const getToken = async () => {
|
|
|
- const { code, returnData, message } = await gettoken({
|
|
|
+ const { code, returnData, message } = (await gettoken({
|
|
|
appid: PLATFROM_CONFIG.appId,
|
|
|
appSecret: PLATFROM_CONFIG.appKeyString,
|
|
|
- });
|
|
|
+ })) as any;
|
|
|
if (code == 0 && returnData) {
|
|
|
setCodeToken(returnData.appToken);
|
|
|
getCheckCode();
|
|
@@ -96,9 +96,9 @@ const getToken = async () => {
|
|
|
|
|
|
//获取动态验证码
|
|
|
const getCheckCode = async () => {
|
|
|
- const { code, message, returnData } = await GetCheckCode({
|
|
|
+ const { code, message, returnData } = (await GetCheckCode({
|
|
|
appToken: getCodeToken(),
|
|
|
- });
|
|
|
+ })) as any;
|
|
|
if (code == 0) {
|
|
|
identifyCode.value = returnData;
|
|
|
} else {
|
|
@@ -113,7 +113,7 @@ const changeCode = () => {
|
|
|
|
|
|
//获取系统设置
|
|
|
const getSystemSet = async () => {
|
|
|
- const { code, message } = await GetSystemSet({});
|
|
|
+ const { code, message } = (await GetSystemSet({})) as any;
|
|
|
if (code == 0) {
|
|
|
ElMessage.success(message);
|
|
|
} else {
|