pref:固定端口号

fix/0714-ch
ch 2 years ago
parent 041e15495d
commit 0508a6d9df

@ -121,21 +121,7 @@
"base" : "" "base" : ""
}, },
"devServer" : { "devServer" : {
"proxy" : { "port" : 8080
"/uc/" : {
// "target" : "https://k8s-horse-gateway.mashibing.cn"
"target" : "http://192.168.10.118:8090"
},
"/mall/" : {
"target" : "http://192.168.10.118:8090"
},
"/pay/" : {
"target" : "https://k8s-horse-gateway.mashibing.cn"
},
"/oss/" : {
"target" : "https://k8s-horse-gateway.mashibing.cn"
}
}
}, },
"optimization" : { "optimization" : {
"treeShaking" : { "treeShaking" : {

@ -17,8 +17,19 @@ export default {
} }
}, },
onLoad(){ onLoad(){
this.url = decodeURIComponent(this.$Route.query.url) this.url = decodeURIComponent(this.$Route.query.url);
console.log(); },
onReady() {
var currentWebview = this.$scope.$getAppWebview() //html5plusplus.webview.currentWebview()uni-appvue使plus.webview.currentWebview()
setTimeout(function() {
let wv = currentWebview.children()[0];
wv.addEventListener('loaded',function() {
console.log('xxxxx',wv.getURL())
console.log(wv.getURL()) //url
console.log(wv.getTitle()) //
}, false);
}, 1000); //
} }
} }
</script> </script>
Loading…
Cancel
Save