lsc 1 year ago
parent
commit
1c25a75cd7

+ 1 - 1
dist/index.html

@@ -1 +1 @@
-<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><link rel=icon href=favicon.ico><title>cocorobo</title></head><body><noscript><strong>We're sorry but cocorobo doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=static/js/chunk-vendors.0b34b779.js></script><script src=static/js/app.97d0ca9e.js></script></body></html><script>document.domain = "cocorobo.hk"</script>
+<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"><link rel=icon href=favicon.ico><title>cocorobo</title></head><body><noscript><strong>We're sorry but cocorobo doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=static/js/chunk-vendors.0b34b779.js></script><script src=static/js/app.645f70f9.js></script></body></html><script>document.domain = "cocorobo.hk"</script>

File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.645f70f9.js


+ 0 - 1
dist/static/js/chunk-604638be.d8e727cb.js

@@ -1 +0,0 @@
-(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-604638be"],{"434d":function(e,t,r){var a=r("24fb");t=a(!1),t.push([e.i,".loginBox[data-v-b9da6d8a]{position:relative;width:100vw;height:100vh;overflow:hidden}.loginBox>iframe[data-v-b9da6d8a]{width:100%;height:100%;border:0}",""]),e.exports=t},"89ef":function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},i=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"loginBox"},[r("iframe",{attrs:{allow:"camera *; microphone *;display-capture;midi;encrypted-media;",src:"https://cloud.cocorobo.hk/aigpt/",frameborder:"0"}})])}],o={data:function(){return{redirect:void 0,timer:null}},watch:{$route:{handler:function(e){this.redirect=e.query&&e.query.redirect},immediate:!0}},methods:{},beforeDestroy:function(){clearInterval(this.timer),this.timer=null},mounted:function(){}},n=o,c=(r("bac4"),r("2877")),d=Object(c["a"])(n,a,i,!1,null,"b9da6d8a",null);t["default"]=d.exports},9540:function(e,t,r){var a=r("434d");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=r("499e").default;i("6e1575e6",a,!0,{sourceMap:!1,shadowMode:!1})},bac4:function(e,t,r){"use strict";var a=r("9540"),i=r.n(a);i.a}}]);

+ 1 - 0
dist/static/js/chunk-85fdb5d0.c4c7f7ef.js

@@ -0,0 +1 @@
+(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-85fdb5d0"],{"5c5d":function(e,t,i){"use strict";var o=i("afca"),r=i.n(o);r.a},"688a":function(e,t,i){var o=i("24fb");t=o(!1),t.push([e.i,".loginBox[data-v-627fa1d9]{position:relative;width:100vw;height:100vh;overflow:hidden}.loginBox>iframe[data-v-627fa1d9]{width:100%;height:100%;border:0}",""]),e.exports=t},"89ef":function(e,t,i){"use strict";i.r(t);var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"loginBox"},[i("iframe",{attrs:{allow:"camera *; microphone *;display-capture;midi;encrypted-media;",src:e.iframe,frameborder:"0"}})])},r=[],a=(i("99af"),i("5530")),c=i("2f62"),n={data:function(){return{redirect:void 0,timer:null,iframe:"https://cloud.cocorobo.hk/aigpt/"}},computed:Object(a["a"])({},Object(c["c"])(["userinfo"])),watch:{$route:{handler:function(e){this.redirect=e.query&&e.query.redirect},immediate:!0}},methods:{},beforeDestroy:function(){clearInterval(this.timer),this.timer=null},mounted:function(){this.iframe="https://cloud.cocorobo.hk/aigpt/?userid=".concat(this.userinfo.userid,"&oid=").concat(this.userinfo.organizeid,"&org=").concat(this.userinfo.org,"&role=").concat(this.userinfo.role)}},s=n,d=(i("5c5d"),i("2877")),u=Object(d["a"])(s,o,r,!1,null,"627fa1d9",null);t["default"]=u.exports},afca:function(e,t,i){var o=i("688a");"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var r=i("499e").default;r("49445bbe",o,!0,{sourceMap:!1,shadowMode:!1})}}]);

+ 8 - 6
src/views/aigpt/index.vue

@@ -1,23 +1,24 @@
 <template>
   <div class="loginBox">
-    <iframe
-      allow="camera *; microphone *;display-capture;midi;encrypted-media;"
-      src="https://cloud.cocorobo.hk/aigpt/"
-      frameborder="0"
-    ></iframe>
+    <iframe allow="camera *; microphone *;display-capture;midi;encrypted-media;" :src="iframe" frameborder="0"></iframe>
     <!-- <button @click="handleLogin">登录</button> -->
   </div>
 </template>
 
 <script>
 // import { mapActions } from 'vuex'
+import { mapGetters } from 'vuex'
 export default {
   data() {
     return {
       redirect: undefined,
-      timer: null
+      timer: null,
+      iframe: 'https://cloud.cocorobo.hk/aigpt/'
     }
   },
+  computed: {
+    ...mapGetters(['userinfo'])
+  },
   watch: {
     $route: {
       handler: function(route) {
@@ -50,6 +51,7 @@ export default {
     // this.timer = setInterval(() => {
     //   this.getLogin()
     // }, 2000)
+    this.iframe = `https://cloud.cocorobo.hk/aigpt/?userid=${this.userinfo.userid}&oid=${this.userinfo.organizeid}&org=${this.userinfo.org}&role=${this.userinfo.role}`
   }
 }
 </script>

Some files were not shown because too many files changed in this diff