修复:《我的归档》生产环境筛选无效的问题,移除router(dev效果良好,build后不生效)

This commit is contained in:
2022-08-14 21:35:53 +08:00
parent 498f690fa1
commit a27276969b
4 changed files with 28 additions and 20 deletions

View File

@@ -20,4 +20,17 @@ export function getQueryParam(paramName) {
return unescape(value[2])
}
return null
}
/**
* 跳转到指定链接
* @param paramName 参数名
* @param paramValue 参数值
*/
export function goToLink(url, paramName, paramValue) {
if (paramName) {
location.href = url + '?' + paramName + '=' + paramValue
} else {
location.href = url
}
}