|
|
@ -6,9 +6,11 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script setup lang="ts"> |
|
|
|
import { getAccessToken } from '@/utils/auth' |
|
|
|
// const url = ref('http://localhost:12080/jmreport/view/881686740529258496') |
|
|
|
const route = useRoute() // 路由对象 |
|
|
|
debugger |
|
|
|
const str = route.path.split('/')[3] |
|
|
|
const url = ref(import.meta.env.VITE_JMREPORT_BASE_URL + '/jmreport/view/'+ str) |
|
|
|
const url = ref(import.meta.env.VITE_JMREPORT_BASE_URL + '/jmreport/view/'+ str+ '?token='+ getAccessToken()) |
|
|
|
console.log(url); |
|
|
|
</script> |
|
|
|