gds-plus-design-vue 1.1.71 → 1.1.73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./system.account.78b852cd.js"),l=require("./chartbi.afd83839.js");require("vue");require("./messages.083c4ede.js");const d={name:"GdOauthAuthorize",data(){return{authorizeType:"loading",query:{},clientId:"",message:"",confirmLoading:!0}},methods:{init(){const s=this.$route.query,e=s.client_id?s.client_id:"",i=s.response_type?s.response_type:"code";if(this.clientId=e,this.responseType=i,this.query=this.$route.query,e)this.getCode();else{const a=this.$i18nt("gd.login.missingParameters","\u7F3A\u5931\u53C2\u6570:")+" client_id";this.$message.error(a),this.message=a,this.authorizeType="fail",this.confirmLoading=!1}},getCode(){c.oauthAuthorize({client_id:this.clientId,response_type:this.responseType}).then(s=>{if(s.code!==200){this.authorizeType="fail",this.$message.error(s.message),this.message=s.message,this.confirmLoading=!1;return}const e=this.query.redirect_uri?this.query.redirect_uri:"";if(e===""){const t=this.$i18nt("gd.login.missingParameters","\u7F3A\u5931\u53C2\u6570:")+" redirect_uri";this.$message.error(t),this.message=t,this.authorizeType="fail",this.confirmLoading=!1}const i=decodeURIComponent(e),a=i.slice(0,i.indexOf("?")),n=i.slice(i.indexOf("?")+1).split("&").map(t=>t.split("=")).map(([t,o])=>({key:t,value:o})).concat([{key:"code",value:s.data.code}]);let r="";for(let t=0;t<n.length;t++)r+=`${t===0?"?":"&"}${n[t].key}=${n[t].value}`;window.location.replace(`${a}${r}`)})}},created(){this.init()}};var u=function(){var e=this,i=e._self._c;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticClass:"gd-oauth"},[i("div",{staticClass:"oauth-loading"},[e.authorizeType==="loading"?i("div",{staticClass:"title"},[i("i",{staticClass:"el-icon-loading"}),e._v(" "+e._s(e.$i18nt("gd.login.authorization","\u6388\u6743\u4E2D...."))+" ")]):e.authorizeType==="fail"?i("div",{staticClass:"err"},[i("i",{staticClass:"el-icon-warning"}),e._v(" "+e._s(e.message)+" ")]):i("div",{staticClass:"title"},[i("i",{staticClass:"el-icon-success"}),e._v(" "+e._s(e.$i18nt("gd.login.authorizationCompleted","\u6388\u6743\u5DF2\u5B8C\u6210"))+" ")])])])},h=[],g=l.normalizeComponent(d,u,h,!1,null,"c42b1f9d",null,null);const m=g.exports;exports.default=m;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./system.account.78b852cd.js"),l=require("./chartbi.afd83839.js");require("vue");require("./messages.083c4ede.js");const d={name:"GdOauthAuthorize",data(){return{authorizeType:"loading",query:{},clientId:"",message:"",confirmLoading:!0}},methods:{init(){const s=this.$route.query,e=s.client_id?s.client_id:"",i=s.response_type?s.response_type:"code";if(this.clientId=e,this.responseType=i,this.query=this.$route.query,e)this.getCode();else{const a=this.$i18nt("gd.login.missingParameters","\u7F3A\u5931\u53C2\u6570:")+" client_id";this.$message.error(a),this.message=a,this.authorizeType="fail",this.confirmLoading=!1}},getCode(){c.oauthAuthorize({client_id:this.clientId,response_type:this.responseType}).then(s=>{if(s.code!==200){this.authorizeType="fail",this.$message.error(s.message),this.message=s.message,this.confirmLoading=!1;return}const e=this.query.redirect_uri?this.query.redirect_uri:"";if(e===""){const t=this.$i18nt("gd.login.missingParameters","\u7F3A\u5931\u53C2\u6570:")+" redirect_uri";this.$message.error(t),this.message=t,this.authorizeType="fail",this.confirmLoading=!1}const i=decodeURIComponent(e),a=i.slice(0,i.indexOf("?")),n=i.slice(i.indexOf("?")+1).split("&").map(t=>t.split("=")).map(([t,o])=>({key:t,value:o})).concat([{key:"code",value:s.data.code}]);let r="";for(let t=0;t<n.length;t++)n[t].value&&(r+=`${r===""?"?":"&"}${n[t].key}=${n[t].value}`);window.location.replace(`${a}${r}`)})}},created(){this.init()}};var u=function(){var e=this,i=e._self._c;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticClass:"gd-oauth"},[i("div",{staticClass:"oauth-loading"},[e.authorizeType==="loading"?i("div",{staticClass:"title"},[i("i",{staticClass:"el-icon-loading"}),e._v(" "+e._s(e.$i18nt("gd.login.authorization","\u6388\u6743\u4E2D...."))+" ")]):e.authorizeType==="fail"?i("div",{staticClass:"err"},[i("i",{staticClass:"el-icon-warning"}),e._v(" "+e._s(e.message)+" ")]):i("div",{staticClass:"title"},[i("i",{staticClass:"el-icon-success"}),e._v(" "+e._s(e.$i18nt("gd.login.authorizationCompleted","\u6388\u6743\u5DF2\u5B8C\u6210"))+" ")])])])},h=[],g=l.normalizeComponent(d,u,h,!1,null,"e1e8dde6",null,null);const m=g.exports;exports.default=m;
@@ -40,7 +40,7 @@ const d = {
40
40
  })).concat([{ key: "code", value: s.data.code }]);
41
41
  let o = "";
42
42
  for (let t = 0; t < n.length; t++)
43
- o += `${t === 0 ? "?" : "&"}${n[t].key}=${n[t].value}`;
43
+ n[t].value && (o += `${o === "" ? "?" : "&"}${n[t].key}=${n[t].value}`);
44
44
  window.location.replace(`${a}${o}`);
45
45
  });
46
46
  }
@@ -58,7 +58,7 @@ var m = function() {
58
58
  h,
59
59
  !1,
60
60
  null,
61
- "c42b1f9d",
61
+ "e1e8dde6",
62
62
  null,
63
63
  null
64
64
  );