提交 dda18d05 编写于 作者: fxy060608's avatar fxy060608

fix(h5): lifecycle (#3114)

上级 2dc6bd7d
......@@ -6797,7 +6797,7 @@ function normalizeRouteKey(path, id2) {
}
function useKeepAliveRoute() {
const route = vueRouter.useRoute();
const routeKey = vue.computed(() => normalizeRouteKey(route.path, getStateId()));
const routeKey = vue.computed(() => normalizeRouteKey("/" + route.meta.route, getStateId()));
const isTabBar = vue.computed(() => route.meta.isTabBar);
return {
routeKey,
......
......@@ -13760,7 +13760,7 @@ function normalizeRouteKey(path, id2) {
}
function useKeepAliveRoute() {
const route = useRoute();
const routeKey = computed(() => normalizeRouteKey(route.path, getStateId()));
const routeKey = computed(() => normalizeRouteKey("/" + route.meta.route, getStateId()));
const isTabBar = computed(() => route.meta.isTabBar);
return {
routeKey,
......
......@@ -104,7 +104,9 @@ export function normalizeRouteKey(path: string, id: number) {
export function useKeepAliveRoute() {
const route = useRoute()
const routeKey = computed(() => normalizeRouteKey(route.path, getStateId()))
const routeKey = computed(() =>
normalizeRouteKey('/' + route.meta.route, getStateId())
)
const isTabBar = computed(() => route.meta.isTabBar)
return {
routeKey,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册