update 优化 eslint

This commit is contained in:
疯狂的狮子Li
2024-06-28 10:18:18 +08:00
parent 27d36f7970
commit 7637582437
20 changed files with 27 additions and 34 deletions

View File

@ -3,10 +3,10 @@
<router-view v-slot="{ Component, route }">
<transition :enter-active-class="animante" mode="out-in">
<div>
<keep-alive :include="tagsViewStore.cachedViews" v-if="!route.meta.noCache">
<component v-if="!route.meta.link" :is="Component" :key="route.path" />
<keep-alive v-if="!route.meta.noCache" :include="tagsViewStore.cachedViews">
<component :is="Component" v-if="!route.meta.link" :key="route.path" />
</keep-alive>
<component v-if="!route.meta.link && route.meta.noCache" :is="Component" :key="route.path" />
<component :is="Component" v-if="!route.meta.link && route.meta.noCache" :key="route.path" />
</div>
</transition>
</router-view>

View File

@ -18,7 +18,7 @@ const code = route.query.code as string;
const state = route.query.state as string;
const source = route.query.source as string;
const stateJson = JSON.parse(atob(state));
const tenantId = stateJson.tenantId as string ? stateJson.tenantId as string : '000000';
const tenantId = (stateJson.tenantId as string) ? (stateJson.tenantId as string) : '000000';
const domain = stateJson.domain as string;
const processResponse = async (res: any) => {