Commit 25266efa by liimin

调整logo切换动画逻辑

1 parent c5ea5a55
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: lizhijie429 * @Author: lizhijie429
* @Date: 2021-08-19 11:16:08 * @Date: 2021-08-19 11:16:08
* @LastEditors: limin * @LastEditors: limin
* @LastEditTime: 2023-11-15 16:43:06 * @LastEditTime: 2023-11-17 15:20:11
* @Description: * @Description:
--> -->
<template> <template>
...@@ -71,36 +71,31 @@ export default { ...@@ -71,36 +71,31 @@ export default {
} }
} }
.el-image { .el-image {
// padding: 12px 0;
// padding-left: 20px;
// left: 0;
// top: 0;
position: absolute; position: absolute;
top: 50%; top: 50%;
left: 50%; left: 50%;
&:nth-child(1) { &:nth-child(1) {
opacity: 1; opacity: 1;
transform: translateX(0) translate(-50%, -50%); transform: translate(-50%, -50%);
} }
&:nth-child(2) { &:nth-child(2) {
opacity: 0; opacity: 0;
transform: translateX(204px) translate(-50%, -50%); transform: translate(204px, -50%);
} }
transition: all 0.12s ease-in-out; transition: transform 0.2s ease-in-out, opacity 0.3s linear;
} }
&.collapse { &.collapse {
i { i {
transform: rotate(180deg); transform: rotate(180deg);
} }
.el-image { .el-image {
// padding-left: 8px;
&:nth-child(1) { &:nth-child(1) {
opacity: 0; opacity: 0;
transform: translateX(-184px) translate(-50%, -50%); transform: translate(-184px, -50%);
} }
&:nth-child(2) { &:nth-child(2) {
opacity: 1; opacity: 1;
transform: translateX(0) translate(-50%, -50%); transform: translate(-50%, -50%);
} }
} }
} }
......
...@@ -214,7 +214,7 @@ export default { ...@@ -214,7 +214,7 @@ export default {
const { defaultPath } = await this.login(menus) const { defaultPath } = await this.login(menus)
Object.assign(sessionData, { defaultPath, loginpath: location.pathname, track }) Object.assign(sessionData, { defaultPath, loginpath: location.pathname, track })
this.setSession(sessionData) this.setSession(sessionData)
track && this.setTracker(sessionData) this.setTracker(sessionData)
this.storeConfig() this.storeConfig()
const path = helper.locationPath() const path = helper.locationPath()
const redirect = path?.get('redirect') const redirect = path?.get('redirect')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!