improve: 首页path调整

This commit is contained in:
From-wh 2023-05-06 15:26:33 +08:00
parent 5196dde140
commit 54c0eecb67
2 changed files with 2 additions and 10 deletions

View File

@ -124,15 +124,7 @@ export default {
onTagsClick(v, k) {
this.tagsRoutePath = v.path;
this.tagsRefsIndex = k;
try {
if (v.name == 'home_index') {
this.$router.replace(`${setting.routePre}/home_page`);
} else {
this.$router.push(v);
}
} catch (error) {
console.log(error);
}
this.$router.push(v);
},
// 获取 tagsView 的下标:用于处理 tagsView 点击时的横向滚动
getTagsRefsIndex(path) {

View File

@ -29,7 +29,7 @@ export default {
component: LayoutMain,
children: [
{
path: routePre + '/home_page',
path: routePre + '/index',
name: `${pre}index`,
header: 'home',
meta: {