|
@@ -67,7 +67,17 @@
|
|
|
"code": code
|
|
|
},
|
|
|
}
|
|
|
- axios.post('http://61.164.207.46:8000/yos/rest/index', param)
|
|
|
+ var str = window.location.href;
|
|
|
+ var index = str.indexOf('/');
|
|
|
+ var num = 0;
|
|
|
+ while(index !== -1) {
|
|
|
+ num++;
|
|
|
+ index = str.indexOf('/',index + 1);
|
|
|
+ if (num++ === 3) {
|
|
|
+ this.url = str.slice(0, index) + '/yosweb/codeToFile.html'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ axios.post(str.slice(0, index) + '/yos/rest/index', param)
|
|
|
.then(function (response) {
|
|
|
console.log(response)
|
|
|
console.log(response.data.data.length)
|