解决搜索后点击无法无法跳转

This commit is contained in:
Aicirou 2020-05-22 00:08:30 +08:00
parent 9a56b77320
commit 9732f3323d
2 changed files with 3 additions and 3 deletions

2
package-lock.json generated
View File

@ -12683,7 +12683,7 @@
},
"webpack-bundle-analyzer": {
"version": "3.7.0",
"resolved": "https://registry.npm.taobao.org/webpack-bundle-analyzer/download/webpack-bundle-analyzer-3.7.0.tgz?cache=0&sync_timestamp=1586846559504&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fwebpack-bundle-analyzer%2Fdownload%2Fwebpack-bundle-analyzer-3.7.0.tgz",
"resolved": "https://registry.npm.taobao.org/webpack-bundle-analyzer/download/webpack-bundle-analyzer-3.7.0.tgz?cache=0&sync_timestamp=1586846510646&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fwebpack-bundle-analyzer%2Fdownload%2Fwebpack-bundle-analyzer-3.7.0.tgz",
"integrity": "sha1-hNpDTolEKJm4hNmtOORm0NsCpW8=",
"dev": true,
"requires": {

View File

@ -325,8 +325,8 @@ export default {
this.loading = false;
let data = res.data;
if (data) {
var href = `/${cur}:${data}`;
href = checkoutPath(href, file);
var href = checkoutPath(data, file);
href = `/${cur}:${data}`;
if (target === "_blank") {
window.open(href);
} else {