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