-
-
Notifications
You must be signed in to change notification settings - Fork 676
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add missing cache control (#248)
* chore: optimizeDeps * fix: add missing cache control
- Loading branch information
1 parent
16c40c0
commit 61bc054
Showing
6 changed files
with
24 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
<script lang="ts" setup> | ||
import { useTabStore } from '~/store' | ||
const tabStore = useTabStore() | ||
</script> | ||
|
||
<template> | ||
<div> | ||
<router-view v-if="tabStore.visitedViews.length > 0" v-slot="{ Component, route }"> | ||
<keep-alive> | ||
<component :is="Component" :key="route.path" /> | ||
<keep-alive :include="tabStore.cachedViews"> | ||
<component :is="Component" :key="route.path" /> | ||
</keep-alive> | ||
</router-view> | ||
<slot v-else></slot> | ||
<slot v-else /> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import { useTabStore } from '~/store' | ||
const tabStore = useTabStore() | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/* theme.dev */ | ||
@use "./theme.scss" as *; | ||
@use "element-plus/theme-chalk/src/index.scss" as *; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters