flat:暂存
This commit is contained in:
@@ -91,6 +91,16 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<script>
|
||||||
|
if(location.href.indexOf('?') !== -1) {
|
||||||
|
const obj = {}
|
||||||
|
const query = location.href.split('?')[1].replace(/\?/, '').split('&')
|
||||||
|
query.forEach((item) => { const a = item.split('='); obj[a[0]] = a[1]})
|
||||||
|
window.sessionStorage.setItem('query_session', JSON.stringify(obj))
|
||||||
|
} else {
|
||||||
|
window.sessionStorage.removeItem('query_session')
|
||||||
|
}
|
||||||
|
</script>
|
||||||
<script src="<%= BASE_URL %>cdn/tinymce5.6.2/tinymce.min.js"></script>
|
<script src="<%= BASE_URL %>cdn/tinymce5.6.2/tinymce.min.js"></script>
|
||||||
<!-- built files will be auto injected -->
|
<!-- built files will be auto injected -->
|
||||||
<script src="<%= BASE_URL %>util/aes.js" charset="utf-8"></script>
|
<script src="<%= BASE_URL %>util/aes.js" charset="utf-8"></script>
|
||||||
|
|||||||
@@ -100,15 +100,12 @@ export default {
|
|||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
// this.getTenant();
|
// this.getTenant();
|
||||||
const {username, password} = this.$route.query
|
const {username, password } = JSON.parse(window.sessionStorage.getItem('query_session'))
|
||||||
console.log(username, password)
|
|
||||||
if(username && password) {
|
if(username && password) {
|
||||||
this.proLoading = true
|
this.proLoading = true
|
||||||
this.loginForm.username = username
|
this.loginForm.username = username
|
||||||
this.loginForm.password = password
|
this.loginForm.password = password
|
||||||
this.$nextTick(() => {
|
|
||||||
this.handleLogin()
|
this.handleLogin()
|
||||||
})
|
|
||||||
} else {
|
} else {
|
||||||
this.refreshCode();
|
this.refreshCode();
|
||||||
}
|
}
|
||||||
@@ -137,25 +134,16 @@ export default {
|
|||||||
},
|
},
|
||||||
handleLogin () {
|
handleLogin () {
|
||||||
if(this.proLoading) {
|
if(this.proLoading) {
|
||||||
const loading = this.$loading({
|
this.ByUsernameCallback()
|
||||||
lock: true,
|
|
||||||
text: '登录中,请稍后。。。',
|
|
||||||
spinner: "el-icon-loading"
|
|
||||||
});
|
|
||||||
this.$store.dispatch("LoginByUsername", {
|
|
||||||
...this.loginForm, code: '0000'
|
|
||||||
}).then(() => {
|
|
||||||
this.$store.dispatch('jlHelpShow', false)
|
|
||||||
this.$router.push({ path: this.tagWel.value });
|
|
||||||
loading.close();
|
|
||||||
}).catch(() => {
|
|
||||||
loading.close();
|
|
||||||
this.refreshCode();
|
|
||||||
});
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.$refs.loginForm.validate(valid => {
|
this.$refs.loginForm.validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
this.ByUsernameCallback()
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
ByUsernameCallback() {
|
||||||
const loading = this.$loading({
|
const loading = this.$loading({
|
||||||
lock: true,
|
lock: true,
|
||||||
text: '登录中,请稍后。。。',
|
text: '登录中,请稍后。。。',
|
||||||
@@ -170,8 +158,6 @@ export default {
|
|||||||
this.refreshCode();
|
this.refreshCode();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
|
||||||
},
|
|
||||||
// getTenant () {
|
// getTenant () {
|
||||||
// let domain = window.location.href.split("/#/")[0];
|
// let domain = window.location.href.split("/#/")[0];
|
||||||
// // 临时指定域名,方便测试
|
// // 临时指定域名,方便测试
|
||||||
|
|||||||
@@ -26,8 +26,9 @@ module.exports = {
|
|||||||
// target: 'http://localhost:8000', // 本地服务接口地址
|
// target: 'http://localhost:8000', // 本地服务接口地址
|
||||||
// target: "http://39.98.184.58:8000", // 阿里云后台地址
|
// target: "http://39.98.184.58:8000", // 阿里云后台地址
|
||||||
// target: "http://192.168.3.104:8000", // 本地
|
// target: "http://192.168.3.104:8000", // 本地
|
||||||
target: 'http://192.168.3.120:8000',
|
// target: 'http://192.168.1.106:8000',
|
||||||
// target: 'http://192.168.3.173:8000',
|
// target: 'http://192.168.3.173:8000',
|
||||||
|
target: 'http://10.165.0.173:8000',
|
||||||
ws: true,
|
ws: true,
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
|
|||||||
Reference in New Issue
Block a user