|
@@ -5,10 +5,10 @@
|
|
|
<img src="../assets/img/logo.png" style="height:55px;">
|
|
<img src="../assets/img/logo.png" style="height:55px;">
|
|
|
</a>
|
|
</a>
|
|
|
<ul class="nav-item">
|
|
<ul class="nav-item">
|
|
|
- <li><a href="http://www.dashoo.cn/product-3-1.html" alt="介绍">产品中心</a></li>
|
|
|
|
|
- <li><a href="http://www.dashoo.cn/service-2-1.html" alt="其他">解决方案</a></li>
|
|
|
|
|
- <li><a href="http://www.dashoo.cn/news-4-1.html" alt="API">科技资讯</a></li>
|
|
|
|
|
- <li><a href="http://www.dashoo.cn" alt="其他">其他</a></li>
|
|
|
|
|
|
|
+ <li><a href="http://www.dashoo.cn/ruanjian/mcs2.html" alt="介绍">产品中心</a></li>
|
|
|
|
|
+ <li><a href="http://www.dashoo.cn/fangan/mcs1.html" alt="其他">解决方案</a></li>
|
|
|
|
|
+ <li><a href="http://www.dashoo.cn/dashunews/" alt="API">科技资讯</a></li>
|
|
|
|
|
+ <li><a href="http://www.dashoo.cn/dashu/company1.html" alt="其他">其他</a></li>
|
|
|
<li>
|
|
<li>
|
|
|
<li class="translations">
|
|
<li class="translations">
|
|
|
<!-- <a class="nav-link">切换语言</a> -->
|
|
<!-- <a class="nav-link">切换语言</a> -->
|
|
@@ -76,7 +76,7 @@
|
|
|
import Vue from 'vue'
|
|
import Vue from 'vue'
|
|
|
import Component from 'class-component'
|
|
import Component from 'class-component'
|
|
|
@Component({
|
|
@Component({
|
|
|
- data() {
|
|
|
|
|
|
|
+ data () {
|
|
|
const model = {
|
|
const model = {
|
|
|
username: '',
|
|
username: '',
|
|
|
password: ''
|
|
password: ''
|
|
@@ -102,18 +102,18 @@
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
export default class Login extends Vue {
|
|
export default class Login extends Vue {
|
|
|
- layout() {
|
|
|
|
|
|
|
+ layout () {
|
|
|
return 'empty'
|
|
return 'empty'
|
|
|
}
|
|
}
|
|
|
- login() {
|
|
|
|
|
|
|
+ login () {
|
|
|
this.logging = true
|
|
this.logging = true
|
|
|
this.$refs.user.validate(async (valid) => {
|
|
this.$refs.user.validate(async (valid) => {
|
|
|
try {
|
|
try {
|
|
|
if (valid) {
|
|
if (valid) {
|
|
|
await this.$store.dispatch('auth/login', {
|
|
await this.$store.dispatch('auth/login', {
|
|
|
fields: {
|
|
fields: {
|
|
|
- username: this.model.username.replace(/(^\s*)|(\s*$)/g, ""),
|
|
|
|
|
- password: this.model.password.replace(/(^\s*)|(\s*$)/g, "")
|
|
|
|
|
|
|
+ username: this.model.username.replace(/(^\s*)|(\s*$)/g, ''),
|
|
|
|
|
+ password: this.model.password.replace(/(^\s*)|(\s*$)/g, '')
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
if (process.env.appclient == 'lims') {
|
|
if (process.env.appclient == 'lims') {
|
|
@@ -131,11 +131,10 @@
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
- logout() {
|
|
|
|
|
|
|
+ logout () {
|
|
|
this.$store.dispatch('logout')
|
|
this.$store.dispatch('logout')
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
<style lang="scss">
|