|
|
@ -10,11 +10,13 @@ console.log(router.path) |
|
|
|
var str =router.path; |
|
|
|
var lastSlashIndex =str.lastIndexOf('/'); |
|
|
|
if (lastSlashIndex === -1) { |
|
|
|
window.open('http://localhost:26111/#/chart/preview/'+str) |
|
|
|
//window.open('http://10.140.10.4:26111/#/chart/preview/'+str) |
|
|
|
//window.open('http://localhost:3000/#/chart/preview/'+str)//本地 |
|
|
|
window.open('http://10.140.10.4:26111/#/chart/preview/'+str)//客户服务器 |
|
|
|
//window.open('http://dev.ccwin-in.com:26111/#/chart/preview/'+str)//测试环境 |
|
|
|
} |
|
|
|
window.open('http://localhost:26111/#/chart/preview/'+str.slice(lastSlashIndex + 1)) |
|
|
|
//window.open('http://10.140.10.4:26111/#/chart/preview/'+str.slice(lastSlashIndex + 1)) |
|
|
|
//window.open('http://localhost:3000/#/chart/preview/'+str.slice(lastSlashIndex + 1))//本地 |
|
|
|
window.open('http://10.140.10.4:26111/#/chart/preview/'+str.slice(lastSlashIndex + 1))//客户服务器 |
|
|
|
//window.open('http://dev.ccwin-in.com:26111/#/chart/preview/'+str.slice(lastSlashIndex + 1))//测试环境 |
|
|
|
|
|
|
|
|
|
|
|
</script> |
|
|
|