|
|
@@ -203,11 +203,18 @@ export default {
|
|
|
qrCodeLogin: {
|
|
|
handler(val) {
|
|
|
if (val) {
|
|
|
- this.qrCode()
|
|
|
this.checkLogin()
|
|
|
}
|
|
|
},
|
|
|
immediate: true
|
|
|
+ },
|
|
|
+ qrCodeText: {
|
|
|
+ handler(val) {
|
|
|
+ if (val.length === 0) {
|
|
|
+ this.qrCode()
|
|
|
+ }
|
|
|
+ },
|
|
|
+ immediate: true
|
|
|
}
|
|
|
},
|
|
|
setup() {
|
|
|
@@ -259,7 +266,6 @@ export default {
|
|
|
methods: {
|
|
|
init() {
|
|
|
this.dev =
|
|
|
- window.location.href.indexOf('localhost') > -1 ||
|
|
|
window.location.href.indexOf('https://test.wutongshucloud.com/') > -1 ||
|
|
|
window.location.href.indexOf('192.168.31') > -1
|
|
|
sessionStorage.setItem('dev', this.dev)
|
|
|
@@ -310,14 +316,6 @@ export default {
|
|
|
'_blank' // <- This is what makes it open in a new window.
|
|
|
)
|
|
|
},
|
|
|
- loginAdmin() {
|
|
|
- this.form.name = '15587166921'
|
|
|
- this.form.pass = 'wtkj@123'
|
|
|
- },
|
|
|
- loginOther() {
|
|
|
- this.form.name = '15587160283'
|
|
|
- this.form.pass = 'wtkj@123'
|
|
|
- },
|
|
|
getInfo() {
|
|
|
this.$api.login.getUserInfo().then(res => {
|
|
|
if (res.code === 200) {
|