|
|
@@ -10,15 +10,15 @@
|
|
|
|
|
|
<div class='right flex flex-col flex-child-average'>
|
|
|
<div class="flex flex-col flex-justify-between" style="height: 560px">
|
|
|
- <!-- <div class='flex flex-justify-end'-->
|
|
|
- <!-- style="margin-right: 3px;margin-top: 3px">-->
|
|
|
- <!-- <div>-->
|
|
|
- <!-- <img v-if="qrCodeLogin" src='../assets/img/com.png' style='width: 80px'-->
|
|
|
- <!-- @click='qrCodeLogin = !qrCodeLogin'/>-->
|
|
|
- <!-- <img v-else src='../assets/img/code.png' style='width: 80px'-->
|
|
|
- <!-- @click='qrCodeLogin = !qrCodeLogin'/>-->
|
|
|
- <!-- </div>-->
|
|
|
- <!-- </div>-->
|
|
|
+ <div v-if='dev' class='flex flex-justify-end'
|
|
|
+ style="margin-right: 3px;margin-top: 3px">
|
|
|
+ <div>
|
|
|
+ <img v-if="qrCodeLogin" src='../assets/img/com.png' style='width: 80px'
|
|
|
+ @click='qrCodeLogin = !qrCodeLogin'/>
|
|
|
+ <img v-else src='../assets/img/code.png' style='width: 80px'
|
|
|
+ @click='qrCodeLogin = !qrCodeLogin'/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
|
|
|
<div v-if='qrCodeLogin' class='flex flex-center flex-col ' style="height: 500px">
|
|
|
<span class='font-24 black bold '>欢迎来到梧桐树云平台👏</span>
|
|
|
@@ -83,7 +83,7 @@
|
|
|
</el-form>
|
|
|
<el-button size='large' style="width: 78%" type='primary' @click='submint'>登录</el-button>
|
|
|
<div class='flex flex-col mt-10'>
|
|
|
- <span class='grey-6'>由梧桐经济院提供技术支持</span>
|
|
|
+ <span class='grey-6'>由梧桐研究院提供技术支持</span>
|
|
|
<div>
|
|
|
<el-button class='mt-10' plain size='small' type='primary' @click='loginAdmin'>admin</el-button>
|
|
|
</div>
|
|
|
@@ -159,11 +159,14 @@ export default {
|
|
|
time: null,
|
|
|
qrCodeText: '',
|
|
|
sessionId: '',
|
|
|
- logoSrc: new URL('../assets/img/logo.png', import.meta.url).href
|
|
|
+ logoSrc: new URL('../assets/img/logo.png', import.meta.url).href,
|
|
|
+ dev: true
|
|
|
}
|
|
|
},
|
|
|
created () {
|
|
|
this.permission.cleanPermission()
|
|
|
+ this.dev = window.location.href.toString().indexOf('dev') > -1
|
|
|
+ console.log(window.location.href.toString())
|
|
|
removeToken()
|
|
|
this.init()
|
|
|
},
|