This commit is contained in:
bb_pan 2025-11-18 13:18:04 +08:00
parent 835ecbd273
commit 639c33969a
2 changed files with 9 additions and 0 deletions

View File

@ -20,6 +20,7 @@ import { el } from 'element-plus/es/locale'
const { getCompanyList, getGoodsClassList } = userClass()
const router: any = useRouter()
const route: any = useRoute()
const userStore = useStore()
const store: any = mainStore()
const tokenNew = localStorage.getItem('tokenNew')
@ -170,6 +171,13 @@ const onClickSwiper = (item: any) => {
getSwiperListData()
onMounted(async () => {
console.log('🚀 ~ home ~ route-->:', route.query)
const redirect = route.query.redirect || ''
if (redirect) {
router.push({
name: route.query.redirect,
})
}
if (!tokenNew) {
const origin = window.location.href

View File

@ -1178,6 +1178,7 @@ onMounted(() => {
}
}
.app-container-content {
padding: 20px;
:deep(.el-dialog) {
display: flex !important;
flex-direction: column !important;