no message
This commit is contained in:
parent
dba0e73436
commit
3717f1e45d
2
dist/index.html
vendored
2
dist/index.html
vendored
@ -1,4 +1,4 @@
|
||||
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"/><meta content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=0" name="viewport"/><link rel="icon" href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/favicon.ico"><title>X-PHP</title><script>document.write("<script src='config.js'><\/script>");</script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/echarts.49558cc4.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/elicons.4bccae06.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/modules.af2834df.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/app.a63fba12.js"></script><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/css/modules.34563575.css" rel="stylesheet"><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/css/app.f6c11b91.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but X-PHP doesn't work properly without JavaScript enabled.</strong></noscript><div id="app" class="aminui"><div class="app-loading"><div class="app-loading__logo"><img src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/logo.png"/></div><div class="app-loading-text"><span class="app-loading-preloader">X</span> <span class="app-loading-preloader">-</span> <span class="app-loading-preloader">A</span> <span class="app-loading-preloader">d</span> <span class="app-loading-preloader">m</span> <span class="app-loading-preloader">i</span> <span class="app-loading-preloader">n</span><div class="app-loading-viewtext-container"><span class="app-loading-viewtext">X</span> <span class="app-loading-viewtext">-</span> <span class="app-loading-viewtext">A</span> <span class="app-loading-viewtext">d</span> <span class="app-loading-viewtext">m</span> <span class="app-loading-viewtext">i</span> <span class="app-loading-viewtext">n</span></div></div></div></div></body><div id="versionCheck" class="versionCheck"><h2>当前浏览器内核版本过低</h2><p>当前版本:<span id="versionCheck-type">--</span> <span id="versionCheck-version">--</span></p><p>最低版本要求:Chrome 71+、Firefox 65+、Safari 12+、Edge 97+。</p><p>请升级浏览器版本,或更换现代浏览器,如果你使用的是双核浏览器,请切换到极速/高速模式。</p></div><style>html,
|
||||
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"/><meta content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=0" name="viewport"/><link rel="icon" href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/favicon.ico"><title>X-PHP</title><script>document.write("<script src='config.js'><\/script>");</script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/echarts.49558cc4.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/elicons.4bccae06.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/modules.af2834df.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/app.f382f140.js"></script><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/css/modules.34563575.css" rel="stylesheet"><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/css/app.f6c11b91.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but X-PHP doesn't work properly without JavaScript enabled.</strong></noscript><div id="app" class="aminui"><div class="app-loading"><div class="app-loading__logo"><img src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/logo.png"/></div><div class="app-loading-text"><span class="app-loading-preloader">X</span> <span class="app-loading-preloader">-</span> <span class="app-loading-preloader">A</span> <span class="app-loading-preloader">d</span> <span class="app-loading-preloader">m</span> <span class="app-loading-preloader">i</span> <span class="app-loading-preloader">n</span><div class="app-loading-viewtext-container"><span class="app-loading-viewtext">X</span> <span class="app-loading-viewtext">-</span> <span class="app-loading-viewtext">A</span> <span class="app-loading-viewtext">d</span> <span class="app-loading-viewtext">m</span> <span class="app-loading-viewtext">i</span> <span class="app-loading-viewtext">n</span></div></div></div></div></body><div id="versionCheck" class="versionCheck"><h2>当前浏览器内核版本过低</h2><p>当前版本:<span id="versionCheck-type">--</span> <span id="versionCheck-version">--</span></p><p>最低版本要求:Chrome 71+、Firefox 65+、Safari 12+、Edge 97+。</p><p>请升级浏览器版本,或更换现代浏览器,如果你使用的是双核浏览器,请切换到极速/高速模式。</p></div><style>html,
|
||||
body,
|
||||
#app {
|
||||
transition-property: filter;
|
||||
|
4
dist/report.html
vendored
4
dist/report.html
vendored
File diff suppressed because one or more lines are too long
1
dist/static/css/480.d632ff94.css
vendored
1
dist/static/css/480.d632ff94.css
vendored
@ -1 +0,0 @@
|
||||
.login_main[data-v-0d5af761] .el-dialog__header{display:none}.login_main[data-v-0d5af761] .el-dialog{opacity:.9;border-radius:12px}.login_main[data-v-0d5af761] .el-divider__text{background:none}input[data-v-0d5af761]:-webkit-autofill,input[data-v-0d5af761]:-webkit-autofill:active,input[data-v-0d5af761]:-webkit-autofill:focus,input[data-v-0d5af761]:-webkit-autofill:hover{-webkit-box-shadow:inset 0 0 0 30px #fff!important}input[data-v-0d5af761]:-moz-autofill,input[data-v-0d5af761]:-moz-autofill:active,input[data-v-0d5af761]:-moz-autofill:focus,input[data-v-0d5af761]:-moz-autofill:hover{background:#fff!important}input[data-v-0d5af761]:-ms-autofill{background:#fff!important}.login_bg[data-v-0d5af761]{width:100%;height:100%;background:#fff;display:flex}.login_adv[data-v-0d5af761]{width:100%;background-color:#555;background-size:cover;background-position:50%;background-repeat:no-repeat;position:relative}.login_adv__title[data-v-0d5af761]{color:#fff;padding:40px;position:absolute;top:0;left:0;right:0;z-index:2}.login_adv__title h2[data-v-0d5af761]{font-size:40px}.login_adv__title h4[data-v-0d5af761]{font-size:18px;margin-top:10px;font-weight:400}.login_adv__title p[data-v-0d5af761]{font-size:14px;margin-top:10px;line-height:1.8;color:hsla(0,0%,100%,.6)}.login_adv__title div[data-v-0d5af761]{margin-top:10px;display:flex;align-items:center}.login_adv__title div span[data-v-0d5af761]{margin-right:15px}.login_adv__title div i[data-v-0d5af761]{font-size:40px}.login_adv__title div i.add[data-v-0d5af761]{font-size:20px;color:hsla(0,0%,100%,.6)}.login_adv__bottom a[data-v-0d5af761]{position:absolute;left:0;right:0;bottom:0;color:#fff;padding:40px;background-image:linear-gradient(transparent,#000);z-index:3}.login_adv__mask[data-v-0d5af761]{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);z-index:1}.login_main[data-v-0d5af761]{flex:1;overflow:auto;display:flex}.login-form[data-v-0d5af761]{margin:auto}.login-header[data-v-0d5af761]{margin-bottom:20px}.login-header .logo[data-v-0d5af761]{display:flex;align-items:center}.login-header .logo img[data-v-0d5af761]{width:40px;height:40px;vertical-align:bottom;margin-right:10px}.login-header .logo label[data-v-0d5af761]{font-size:26px;font-weight:700}.login-oauth[data-v-0d5af761]{display:flex;justify-content:space-around}.login-form .el-divider[data-v-0d5af761]{margin-top:40px}.login-form[data-v-0d5af761] .el-tabs .el-tabs__header{margin-bottom:25px}.login-form[data-v-0d5af761] .el-tabs .el-tabs__header .el-tabs__item{font-size:14px}.login-form[data-v-0d5af761] .login-forgot{text-align:right}.login-form[data-v-0d5af761] .login-forgot a{color:var(--el-color-primary)}.login-form[data-v-0d5af761] .login-forgot a:hover{color:var(--el-color-primary-light-3)}.login-form[data-v-0d5af761] .login-reg{font-size:14px;color:var(--el-text-color-primary)}.login-form[data-v-0d5af761] .login-reg a{color:var(--el-color-primary)}.login-form[data-v-0d5af761] .login-reg a:hover{color:var(--el-color-primary-light-3)}.login_config[data-v-0d5af761]{position:absolute;top:20px;right:20px}.login-form[data-v-0d5af761] .login-msg-yzm{display:flex;width:100%}.login-form[data-v-0d5af761] .login-msg-yzm .el-button{margin-left:10px;--el-button-size:42px}.qrCodeLogin[data-v-0d5af761]{text-align:center;position:relative;padding:20px 0}.qrCodeLogin img.qrCode[data-v-0d5af761]{background:#fff;padding:20px;border-radius:10px}.qrCodeLogin p.msg[data-v-0d5af761]{margin-top:15px}.qrCodeLogin .qrCodeLogin-result[data-v-0d5af761]{position:absolute;top:0;left:0;right:0;bottom:0;text-align:center;background:var(--el-mask-color)}@media (max-width:680px){.login_main[data-v-0d5af761] .el-dialog{width:100%!important;box-shadow:none}.login_main[data-v-0d5af761]{display:block}.login_main .login_config[data-v-0d5af761]{position:static;padding:20px 20px 0 20px;text-align:right}.login-form[data-v-0d5af761]{width:100%}.login_adv[data-v-0d5af761]{display:none}}
|
1
dist/static/css/638.e342af17.css
vendored
Normal file
1
dist/static/css/638.e342af17.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
.login_main[data-v-857ad0a0] .el-dialog__header{display:none}.login_main[data-v-857ad0a0] .el-dialog{opacity:.9;border-radius:12px}.login_main[data-v-857ad0a0] .el-divider__text{background:none}.login_main[data-v-857ad0a0] input:-webkit-autofill,.login_main[data-v-857ad0a0] input:-webkit-autofill:active,.login_main[data-v-857ad0a0] input:-webkit-autofill:focus,.login_main[data-v-857ad0a0] input:-webkit-autofill:hover{-webkit-box-shadow:inset 0 0 0 30px #fff!important}.login_main[data-v-857ad0a0] input:-moz-autofill,.login_main[data-v-857ad0a0] input:-moz-autofill:active,.login_main[data-v-857ad0a0] input:-moz-autofill:focus,.login_main[data-v-857ad0a0] input:-moz-autofill:hover{background:#fff!important}.login_main[data-v-857ad0a0] input:-ms-autofill{background:#fff!important}.login_bg[data-v-857ad0a0]{width:100%;height:100%;background:#fff;display:flex}.login_adv[data-v-857ad0a0]{width:100%;background-color:#555;background-size:cover;background-position:50%;background-repeat:no-repeat;position:relative}.login_adv__title[data-v-857ad0a0]{color:#fff;padding:40px;position:absolute;top:0;left:0;right:0;z-index:2}.login_adv__title h2[data-v-857ad0a0]{font-size:40px}.login_adv__title h4[data-v-857ad0a0]{font-size:18px;margin-top:10px;font-weight:400}.login_adv__title p[data-v-857ad0a0]{font-size:14px;margin-top:10px;line-height:1.8;color:hsla(0,0%,100%,.6)}.login_adv__title div[data-v-857ad0a0]{margin-top:10px;display:flex;align-items:center}.login_adv__title div span[data-v-857ad0a0]{margin-right:15px}.login_adv__title div i[data-v-857ad0a0]{font-size:40px}.login_adv__title div i.add[data-v-857ad0a0]{font-size:20px;color:hsla(0,0%,100%,.6)}.login_adv__bottom a[data-v-857ad0a0]{position:absolute;left:0;right:0;bottom:0;color:#fff;padding:40px;background-image:linear-gradient(transparent,#000);z-index:3}.login_adv__mask[data-v-857ad0a0]{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);z-index:1}.login_main[data-v-857ad0a0]{flex:1;overflow:auto;display:flex}.login-form[data-v-857ad0a0]{margin:auto}.login-header[data-v-857ad0a0]{margin-bottom:20px}.login-header .logo[data-v-857ad0a0]{display:flex;align-items:center}.login-header .logo img[data-v-857ad0a0]{width:40px;height:40px;vertical-align:bottom;margin-right:10px}.login-header .logo label[data-v-857ad0a0]{font-size:26px;font-weight:700}.login-oauth[data-v-857ad0a0]{display:flex;justify-content:space-around}.login-form .el-divider[data-v-857ad0a0]{margin-top:40px}.login-form[data-v-857ad0a0] .el-tabs .el-tabs__header{margin-bottom:25px}.login-form[data-v-857ad0a0] .el-tabs .el-tabs__header .el-tabs__item{font-size:14px}.login-form[data-v-857ad0a0] .login-forgot{text-align:right}.login-form[data-v-857ad0a0] .login-forgot a{color:var(--el-color-primary)}.login-form[data-v-857ad0a0] .login-forgot a:hover{color:var(--el-color-primary-light-3)}.login-form[data-v-857ad0a0] .login-reg{font-size:14px;color:var(--el-text-color-primary)}.login-form[data-v-857ad0a0] .login-reg a{color:var(--el-color-primary)}.login-form[data-v-857ad0a0] .login-reg a:hover{color:var(--el-color-primary-light-3)}.login_config[data-v-857ad0a0]{position:absolute;top:20px;right:20px}.login-form[data-v-857ad0a0] .login-msg-yzm{display:flex;width:100%}.login-form[data-v-857ad0a0] .login-msg-yzm .el-button{margin-left:10px;--el-button-size:42px}.qrCodeLogin[data-v-857ad0a0]{text-align:center;position:relative;padding:20px 0}.qrCodeLogin img.qrCode[data-v-857ad0a0]{background:#fff;padding:20px;border-radius:10px}.qrCodeLogin p.msg[data-v-857ad0a0]{margin-top:15px}.qrCodeLogin .qrCodeLogin-result[data-v-857ad0a0]{position:absolute;top:0;left:0;right:0;bottom:0;text-align:center;background:var(--el-mask-color)}@media (max-width:680px){.login_main[data-v-857ad0a0] .el-dialog{width:100%!important;box-shadow:none}.login_main[data-v-857ad0a0]{display:block}.login_main .login_config[data-v-857ad0a0]{position:static;padding:20px 20px 0 20px;text-align:right}.login-form[data-v-857ad0a0]{width:100%}.login_adv[data-v-857ad0a0]{display:none}}
|
@ -1 +1 @@
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[480],{1480:function(o,e,t){t.r(e),t.d(e,{default:function(){return N}});var i=t(6808),a=t(9511);const s=o=>((0,i.dD)("data-v-0d5af761"),o=o(),(0,i.Cn)(),o),n={class:"login_bg"},l={class:"login_adv",style:{"background-image":"url(https://x-mo.cn:8888/background)"}},c=s((()=>(0,i._)("div",{class:"login_adv__title"},null,-1))),d=s((()=>(0,i._)("div",{class:"login_adv__mask"},null,-1))),r={class:"login_adv__bottom"},g={href:"https://x-php.com",target:"_blank"},h={class:"login_main"},u={class:"login_config"},m={class:"login-form"},_={class:"login-header"},p={class:"logo"},f=["alt","src"],v=s((()=>(0,i._)("span",{class:"login-right-warp-one"},null,-1))),w=s((()=>(0,i._)("span",{class:"login-right-warp-two"},null,-1))),L={class:"login-oauth"},$={class:"qrCodeLogin"},k=s((()=>(0,i._)("p",{class:"msg"},"请使用微信扫一扫登录",-1))),W={key:0,class:"qrCodeLogin-result"};function A(o,e,t,s,A,P){const b=(0,i.up)("el-button"),q=(0,i.up)("password-form"),C=(0,i.up)("el-tab-pane"),y=(0,i.up)("el-tabs"),E=(0,i.up)("el-divider"),N=(0,i.up)("el-dialog"),x=(0,i.up)("x-qr-code"),D=(0,i.up)("el-result");return(0,i.wg)(),(0,i.iD)(i.HY,null,[(0,i._)("div",n,[(0,i._)("div",l,[c,d,(0,i._)("div",r,[(0,i._)("a",g,"© "+(0,a.zw)(o.$config.APP_NAME)+" "+(0,a.zw)(o.$config.APP_VER),1)])]),(0,i._)("div",h,[(0,i.Wm)(N,{modelValue:A.open,"onUpdate:modelValue":e[0]||(e[0]=o=>A.open=o),modal:!1,"show-close":!1,"close-on-click-modal":!1,"close-on-press-escape":!1},{default:(0,i.w5)((()=>[(0,i._)("div",u,[(0,i.Wm)(b,{icon:A.config.dark?"el-icon-sunny":"el-icon-moon",circle:"",type:"info",onClick:P.configDark},null,8,["icon","onClick"])]),(0,i._)("div",m,[(0,i._)("div",_,[(0,i._)("div",p,[(0,i._)("img",{alt:o.$config.APP_NAME,src:A.appLogo},null,8,f),(0,i._)("label",null,(0,a.zw)(o.$config.APP_NAME),1)])]),(0,i.Wm)(y,null,{default:(0,i.w5)((()=>[(0,i.Wm)(C,{label:"登录",lazy:""},{default:(0,i.w5)((()=>[v,w,(0,i.Wm)(q)])),_:1})])),_:1}),o.$config.MY_SHOW_LOGIN_OAUTH?((0,i.wg)(),(0,i.iD)(i.HY,{key:0},[(0,i.Wm)(E,null,{default:(0,i.w5)((()=>[(0,i.Uk)("其它登录")])),_:1}),(0,i._)("div",L,[(0,i.Wm)(b,{type:"success",icon:"x-icon-wechat",circle:"",onClick:P.wechatLogin},null,8,["onClick"])])],64)):(0,i.kq)("",!0)])])),_:1},8,["modelValue"])])]),(0,i.Wm)(N,{modelValue:A.showWechatLogin,"onUpdate:modelValue":e[1]||(e[1]=o=>A.showWechatLogin=o),title:"微信登录",width:400,"destroy-on-close":""},{default:(0,i.w5)((()=>[(0,i._)("div",$,[(0,i.Wm)(x,{class:"qrCode",text:A.WechatLoginCode,size:200},null,8,["text"]),k,A.isWechatLoginResult?((0,i.wg)(),(0,i.iD)("div",W,[(0,i.Wm)(D,{icon:"success",title:"已扫描","sub-title":"请在设备中点击授权登录"})])):(0,i.kq)("",!0)])])),_:1},8,["modelValue"])],64)}var P=t(7126),b=t(8428),q=t(5080),C={components:{passwordForm:P["default"],phoneForm:b["default"]},data(){return{config:{lang:this.$tool.data.get("APP_LANG")||this.$config.LANG,dark:this.$tool.data.get("APP_DARK")||!1},lang:[{name:"简体中文",value:"zh-cn"},{name:"English",value:"en"}],WechatLoginCode:"",WechatLoginuniqid:"",appLogo:"",showWechatLogin:!1,isWechatLoginResult:!1,open:!0}},watch:{"config.dark"(o){o?(document.documentElement.classList.add("dark"),this.$tool.data.set("APP_DARK",o)):(document.documentElement.classList.remove("dark"),this.$tool.data.remove("APP_DARK"))}},created:function(){this.appLogo=this.$tool.data.get("appLogo")||this.$config.APP_LOGO||q,this.$tool.cookie.remove(this.$config.SESSIONNAME),this.$tool.data.remove("user"),this.$tool.data.remove("menu"),this.$tool.data.remove("permissions"),this.$tool.data.remove("dashboardgrid"),this.$tool.data.remove("grid"),this.$tool.store.remove("token"),this.$store.commit("clearViewTags"),this.$store.commit("clearKeepLive"),this.$store.commit("clearIframeList")},methods:{configDark(){this.config.dark=!this.config.dark},long_contact:function(){if(!this.WechatLoginuniqid)return!1;setTimeout((async()=>{var o=await this.$http.post("login/wechatSubmit",{uniqid:this.WechatLoginuniqid});if(201==o.code)this.showWechatLogin=!1,this.$message.warning(o.message);else if(202==o.code)this.long_contact();else if(200==o.code){this.showWechatLogin=!1,this.$tool.cookie.set(this.$config.SESSIONNAME,o.data.token,{expires:31104e3});const e=this.$route.query.redirect||"/";return this.$router.replace({path:e}),this.$message.success("Login Success 登录成功"),this.islogin=!1,!1}}),1e3)},async wechatLogin(){var o=await this.$http.get("login/wechatQrcode");if(200!=o.code)return this.$message.warning(o.message),!1;this.showWechatLogin=!0,this.WechatLoginCode=o.data.qrcodeurl,this.WechatLoginuniqid=o.data.uniqid,this.long_contact()}}},y=t(8700);const E=(0,y.Z)(C,[["render",A],["__scopeId","data-v-0d5af761"]]);var N=E}}]);
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[638],{3548:function(o,e,t){t.r(e),t.d(e,{default:function(){return N}});var i=t(6808),a=t(9511);const s=o=>((0,i.dD)("data-v-857ad0a0"),o=o(),(0,i.Cn)(),o),n={class:"login_bg"},l={class:"login_adv",style:{"background-image":"url(https://x-mo.cn:8888/background)"}},c=s((()=>(0,i._)("div",{class:"login_adv__title"},null,-1))),d=s((()=>(0,i._)("div",{class:"login_adv__mask"},null,-1))),r={class:"login_adv__bottom"},g={href:"https://x-php.com",target:"_blank"},h={class:"login_main"},u={class:"login_config"},m={class:"login-form"},_={class:"login-header"},p={class:"logo"},f=["alt","src"],v=s((()=>(0,i._)("span",{class:"login-right-warp-one"},null,-1))),w=s((()=>(0,i._)("span",{class:"login-right-warp-two"},null,-1))),L={class:"login-oauth"},$={class:"qrCodeLogin"},k=s((()=>(0,i._)("p",{class:"msg"},"请使用微信扫一扫登录",-1))),W={key:0,class:"qrCodeLogin-result"};function A(o,e,t,s,A,P){const b=(0,i.up)("el-button"),q=(0,i.up)("password-form"),C=(0,i.up)("el-tab-pane"),y=(0,i.up)("el-tabs"),E=(0,i.up)("el-divider"),N=(0,i.up)("el-dialog"),x=(0,i.up)("x-qr-code"),D=(0,i.up)("el-result");return(0,i.wg)(),(0,i.iD)(i.HY,null,[(0,i._)("div",n,[(0,i._)("div",l,[c,d,(0,i._)("div",r,[(0,i._)("a",g,"© "+(0,a.zw)(o.$config.APP_NAME)+" "+(0,a.zw)(o.$config.APP_VER),1)])]),(0,i._)("div",h,[(0,i.Wm)(N,{modelValue:A.open,"onUpdate:modelValue":e[0]||(e[0]=o=>A.open=o),modal:!1,"show-close":!1,"close-on-click-modal":!1,"close-on-press-escape":!1},{default:(0,i.w5)((()=>[(0,i._)("div",u,[(0,i.Wm)(b,{icon:A.config.dark?"el-icon-sunny":"el-icon-moon",circle:"",type:"info",onClick:P.configDark},null,8,["icon","onClick"])]),(0,i._)("div",m,[(0,i._)("div",_,[(0,i._)("div",p,[(0,i._)("img",{alt:o.$config.APP_NAME,src:A.appLogo},null,8,f),(0,i._)("label",null,(0,a.zw)(o.$config.APP_NAME),1)])]),(0,i.Wm)(y,null,{default:(0,i.w5)((()=>[(0,i.Wm)(C,{label:"登录",lazy:""},{default:(0,i.w5)((()=>[v,w,(0,i.Wm)(q)])),_:1})])),_:1}),o.$config.MY_SHOW_LOGIN_OAUTH?((0,i.wg)(),(0,i.iD)(i.HY,{key:0},[(0,i.Wm)(E,null,{default:(0,i.w5)((()=>[(0,i.Uk)("其它登录")])),_:1}),(0,i._)("div",L,[(0,i.Wm)(b,{type:"success",icon:"x-icon-wechat",circle:"",onClick:P.wechatLogin},null,8,["onClick"])])],64)):(0,i.kq)("",!0)])])),_:1},8,["modelValue"])])]),(0,i.Wm)(N,{modelValue:A.showWechatLogin,"onUpdate:modelValue":e[1]||(e[1]=o=>A.showWechatLogin=o),title:"微信登录",width:400,"destroy-on-close":""},{default:(0,i.w5)((()=>[(0,i._)("div",$,[(0,i.Wm)(x,{class:"qrCode",text:A.WechatLoginCode,size:200},null,8,["text"]),k,A.isWechatLoginResult?((0,i.wg)(),(0,i.iD)("div",W,[(0,i.Wm)(D,{icon:"success",title:"已扫描","sub-title":"请在设备中点击授权登录"})])):(0,i.kq)("",!0)])])),_:1},8,["modelValue"])],64)}var P=t(7126),b=t(8428),q=t(5080),C={components:{passwordForm:P["default"],phoneForm:b["default"]},data(){return{config:{lang:this.$tool.data.get("APP_LANG")||this.$config.LANG,dark:this.$tool.data.get("APP_DARK")||!1},lang:[{name:"简体中文",value:"zh-cn"},{name:"English",value:"en"}],WechatLoginCode:"",WechatLoginuniqid:"",appLogo:"",showWechatLogin:!1,isWechatLoginResult:!1,open:!0}},watch:{"config.dark"(o){o?(document.documentElement.classList.add("dark"),this.$tool.data.set("APP_DARK",o)):(document.documentElement.classList.remove("dark"),this.$tool.data.remove("APP_DARK"))}},created:function(){this.appLogo=this.$tool.data.get("appLogo")||this.$config.APP_LOGO||q,this.$tool.cookie.remove(this.$config.SESSIONNAME),this.$tool.data.remove("user"),this.$tool.data.remove("menu"),this.$tool.data.remove("permissions"),this.$tool.data.remove("dashboardgrid"),this.$tool.data.remove("grid"),this.$tool.store.remove("token"),this.$store.commit("clearViewTags"),this.$store.commit("clearKeepLive"),this.$store.commit("clearIframeList")},methods:{configDark(){this.config.dark=!this.config.dark},long_contact:function(){if(!this.WechatLoginuniqid)return!1;setTimeout((async()=>{var o=await this.$http.post("login/wechatSubmit",{uniqid:this.WechatLoginuniqid});if(201==o.code)this.showWechatLogin=!1,this.$message.warning(o.message);else if(202==o.code)this.long_contact();else if(200==o.code){this.showWechatLogin=!1,this.$tool.cookie.set(this.$config.SESSIONNAME,o.data.token,{expires:31104e3});const e=this.$route.query.redirect||"/";return this.$router.replace({path:e}),this.$message.success("Login Success 登录成功"),this.islogin=!1,!1}}),1e3)},async wechatLogin(){var o=await this.$http.get("login/wechatQrcode");if(200!=o.code)return this.$message.warning(o.message),!1;this.showWechatLogin=!0,this.WechatLoginCode=o.data.qrcodeurl,this.WechatLoginuniqid=o.data.uniqid,this.long_contact()}}},y=t(8700);const E=(0,y.Z)(C,[["render",A],["__scopeId","data-v-857ad0a0"]]);var N=E}}]);
|
File diff suppressed because one or more lines are too long
@ -206,23 +206,23 @@ export default {
|
||||
}
|
||||
|
||||
/* 针对自动填充后的样式 */
|
||||
input:-webkit-autofill,
|
||||
input:-webkit-autofill:hover,
|
||||
input:-webkit-autofill:focus,
|
||||
input:-webkit-autofill:active {
|
||||
.login_main /deep/ input:-webkit-autofill,
|
||||
.login_main /deep/ input:-webkit-autofill:hover,
|
||||
.login_main /deep/ input:-webkit-autofill:focus,
|
||||
.login_main /deep/ input:-webkit-autofill:active {
|
||||
-webkit-box-shadow: 0 0 0 30px white inset !important;
|
||||
}
|
||||
|
||||
/* 针对Firefox浏览器的自动填充样式 */
|
||||
input:-moz-autofill,
|
||||
input:-moz-autofill:hover,
|
||||
input:-moz-autofill:focus,
|
||||
input:-moz-autofill:active {
|
||||
.login_main /deep/ input:-moz-autofill,
|
||||
.login_main /deep/ input:-moz-autofill:hover,
|
||||
.login_main /deep/ input:-moz-autofill:focus,
|
||||
.login_main /deep/ input:-moz-autofill:active {
|
||||
background: white !important;
|
||||
}
|
||||
|
||||
/* 针对Edge浏览器的自动填充样式 */
|
||||
input:-ms-autofill {
|
||||
.login_main /deep/ input:-ms-autofill {
|
||||
background: white !important;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user