| 1234567891011121314151617181920212223242526272829303132 |
- const { createApp, ref ,onMounted,createVNode, render,beforeCreate} = Vue
- createApp({
- setup() {
- onMounted(()=>{
- createIframeUrl()
- })
- const url = ref('')
- const createIframeUrl = ()=>{
- let path = tool.getQueryParam('path')
- let token = sessionStorage.getItem('token')
- url.value = `${DynamicAcquisitionURL()}/yosweb/index.html#/bridge?token=${token}&path=${path}`
- console.log(url.value)
- }
- const DynamicAcquisitionURL = ()=> {
- var str = window.location.href;
- var index = str.indexOf('/');
- var num = 0;
- while(index !== -1) {
- num++;
- index = str.indexOf('/',index + 1);
- if (num++ === 3) {
- return str.slice(0, index);
- }
- }
- }
-
- return {
- url
- }
- }
- }).mount('#app')
|