songguoqiang
1 year ago
3 changed files with 31 additions and 5 deletions
@ -0,0 +1,24 @@ |
|||||
|
<template> |
||||
|
<div></div> |
||||
|
</template> |
||||
|
|
||||
|
<script setup lang="ts"> |
||||
|
import { useRoute } from 'vue-router' |
||||
|
const router = useRoute() |
||||
|
defineOptions({ name: 'big' }) |
||||
|
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:26111/#/chart/preview/'+str.slice(lastSlashIndex + 1)) |
||||
|
//window.open('http://10.140.10.4:26111/#/chart/preview/'+str.slice(lastSlashIndex + 1)) |
||||
|
|
||||
|
|
||||
|
</script> |
||||
|
|
||||
|
<style> |
||||
|
</style> |
||||
|
|
Loading…
Reference in new issue