|
@@ -0,0 +1,40 @@
|
|
|
+<template>
|
|
|
+ <IFRAME
|
|
|
+ :src="url"
|
|
|
+ frameBorder=0 marginwidth=0 marginheight=0 scrolling=no
|
|
|
+ style="margin-left: 0px;padding: 0px; width: 100%;height: 1280px"
|
|
|
+ ALLOWTRANSPARENCY="true"></IFRAME>
|
|
|
+</template>
|
|
|
+<script>
|
|
|
+
|
|
|
+export default {
|
|
|
+ name: 'embeddedIndex',
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ url: "",
|
|
|
+ // 参数实例
|
|
|
+ data: {
|
|
|
+ "uri": "http://192.168.110.59:8066/oauth2/authorize",
|
|
|
+ "client_id": "htmes",
|
|
|
+ "redirect_uri": "http://192.168.110.76:8087/oauth/callback",
|
|
|
+ "key": "asd",
|
|
|
+ "tenantCode": "huaxian"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ computed: {},
|
|
|
+ mounted() {
|
|
|
+ let {
|
|
|
+ uri,
|
|
|
+ client_id,
|
|
|
+ redirect_uri,
|
|
|
+ key,
|
|
|
+ tenantCode
|
|
|
+ } = this.$route.query;
|
|
|
+ key = window.localStorage.getItem("setoauthUUID" + this.userInfo.name);
|
|
|
+ this.url = uri + "?client_id=" + client_id + "&scope=basic&response_type=code&state=AB1357&redirect_uri=" + redirect_uri + "&tenantCode=" + tenantCode + "&key=" + key;
|
|
|
+ console.log("最终:", this.url)
|
|
|
+ },
|
|
|
+ methods: {}
|
|
|
+}
|
|
|
+</script>
|