【类 型】:fix

【主	题】:路径中有中文编码 问题
【描	述】:
	[原因]:设置激活当前导航 地址参数有中文会有编码问题 导致不能激活
	[过程]:计算属性获取地址 转一下编码
	[影响]:
【结	束】

# 类型 包含:
# feat:新功能(feature)
# fix:修补bug
# docs:文档(documentation)
# style: 格式(不影响代码运行的变动)
# refactor:重构(即不是新增功能,也不是修改bug的代码变动)
# test:增加测试
# chore:构建过程或辅助工具的变动
This commit is contained in:
tk 2024-07-11 15:54:56 +08:00
parent b1c47a17e4
commit 720021123d

View File

@ -79,10 +79,11 @@ export default {
activeMenu () {
const route = this.$route
const { meta, path } = route
const decodedPath = decodeURIComponent(path) // URL
if (meta.activeMenu) {
return meta.activeMenu
}
return path
return decodedPath
},
/**
* @description: 获取飞机列表