Skip to content

Commit

Permalink
fix: 修复文件编辑失败的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
xream committed Jan 14, 2024
1 parent f664f5a commit be81996
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sub-store-front-end",
"version": "2.14.52",
"version": "2.14.53",
"private": true,
"scripts": {
"dev": "vite --host",
Expand Down
3 changes: 1 addition & 2 deletions src/views/FileEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@
const router = useRouter();
const subsApi = useSubsApi();
const filesApi = useFilesApi();
const editType = route.params.editType as string;
const configName = route.params.id as string;
const subsStore = useSubsStore();
const { showNotify } = useAppNotifyStore();
Expand Down Expand Up @@ -391,7 +390,7 @@
if (configName === data.name) {
// @ts-ignore
await subsStore.updateOneData(editType, configName);
await subsStore.updateOneData('files', configName);
} else {
await subsStore.fetchSubsData();
}
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const viteConfig = defineConfig((mode: ConfigEnv) => {
],
},
workbox: {
navigateFallbackDenylist: [/(^\/edit|(^|\/.+)\/(api|download))\/.+/],
navigateFallbackDenylist: [/(^|\/.+)\/(api|download)\/.+/],
// globPatterns: ['**/*.{css,js,gz,eot,html,svg,png,ico,ttf,woff2}'],
runtimeCaching: [
{
Expand Down

0 comments on commit be81996

Please sign in to comment.