Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
fix(router): 第一次进入页面缓存失效问题
Browse files Browse the repository at this point in the history
  • Loading branch information
yanbowe committed Mar 9, 2022
1 parent e940899 commit 1b79adc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router';

import { createRouterGuards } from './router-guards';

import staticModules from './staticModules/';
import outsideLayout from './outsideLayout';
import { whiteNameList } from './constant';

Expand All @@ -17,7 +16,7 @@ export const routes: Array<RouteRecordRaw> = [
meta: {
title: '首页',
},
children: [...staticModules],
children: [],
},
// Layout之外的路由
...outsideLayout,
Expand Down

0 comments on commit 1b79adc

Please sign in to comment.