Skip to content

Commit

Permalink
feat: 排除后端 share 路由
Browse files Browse the repository at this point in the history
  • Loading branch information
xream committed Oct 30, 2024
1 parent b1b70b4 commit 92b02f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/views/NotFound.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import { useRoute } from 'vue-router';
const route = useRoute();
const isBackend = /\/(api|download)\/.+/.test(route.fullPath)
const isBackend = /\/(api|download|share)\/.+/.test(route.fullPath)
</script>

<style lang="scss" scoped>
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const viteConfig = defineConfig((mode: ConfigEnv) => {
],
},
workbox: {
navigateFallbackDenylist: [/(^|\/.+)\/(api|download)\/.+/],
navigateFallbackDenylist: [/(^|\/.+)\/(api|download|share)\/.+/],
// globPatterns: ['**/*.{css,js,gz,eot,html,svg,png,ico,ttf,woff2}'],
runtimeCaching: [
{
Expand Down

0 comments on commit 92b02f8

Please sign in to comment.