服装智能制造软件平台V3.0
http://182.92.169.222/hhxy/#/user/login
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
915 B
47 lines
915 B
<template> |
|
|
|
<iframe :id="id" :src="url" frameborder="0" width="100%" height="800px" scrolling="auto" style="background-color: #fff;"></iframe> |
|
|
|
</template> |
|
|
|
<script> |
|
import PageLayout from '../page/PageLayout' |
|
import RouteView from './RouteView' |
|
|
|
export default { |
|
name: "IframePageContent", |
|
data () { |
|
return { |
|
url: "", |
|
id:"" |
|
} |
|
}, |
|
created () { |
|
this.goUrl() |
|
}, |
|
updated () { |
|
this.goUrl() |
|
}, |
|
watch: { |
|
$route(to, from) { |
|
this.goUrl(); |
|
} |
|
}, |
|
methods: { |
|
goUrl () { |
|
let url = this.$route.meta.url |
|
let id = this.$route.path |
|
this.id = id |
|
//url = "http://www.baidu.com" |
|
console.log("------url------"+url) |
|
if (url !== null && url !== undefined) { |
|
this.url = url; |
|
//window.open(this.url); |
|
} |
|
} |
|
} |
|
} |
|
</script> |
|
|
|
<style> |
|
</style> |