CN-1468 fix: 路由动态设置

This commit is contained in:
chenjinsong
2023-11-09 16:17:25 +08:00
parent 1410f890f3
commit 330a4b0d3b
20 changed files with 161 additions and 157 deletions

View File

@@ -396,7 +396,7 @@ export default {
if (!this.showList) {
// 首页进入搜索时重载页面,视觉上进入列表页面
this.$router.push({
path: '/entityExplorer',
path: '/entity',
query: {
listMode: this.listMode,
q: urlQ,

View File

@@ -121,7 +121,7 @@ export default {
methods: {
showDetail () {
const { href } = this.$router.resolve({
path: '/entityDetail',
path: '/entity/detail',
query: {
entityType: this.entityData.entityType,
entityName: this.entityData.entityValue
@@ -131,7 +131,7 @@ export default {
},
showGraph () {
const { href } = this.$router.resolve({
path: '/entityGraph',
path: '/entity/graph',
query: {
entityType: this.entityData.entityType,
entityName: this.entityData.entityValue