地图点位样式修改,曲线逻辑修改,引导功能修改
This commit is contained in:
@@ -59,8 +59,7 @@
|
||||
import JSEncrypt from 'jsencrypt'
|
||||
import {authlogin} from '@/config/getData'
|
||||
import { mapGetters, mapActions } from 'vuex'
|
||||
const publicKey = 'MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBANL378k3RiZHWx5AfJqdH9xRNBmD9wGD\n' +
|
||||
'2iRe41HdTNF8RUhNnHit5NpMNtGL0NPTSSpPjjI1kJfVorRvaQerUgkCAwEAAQ=='
|
||||
const publicKey = 'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDI4R+Tpgu6LD33XpV8JF9bk1tb7o/JomSFOeOmOncu0yNkRdOK3Ftnp3gaq7xf/DYtW/gPm6gCXzItNUwwZncqfu78mc1D0V79Nh6SP2TPXZEIb9puFZ0zZ1jjNJmP+3ybQ3y14XwzZgTM+4ee6A1BVdBEkLaeYuCu4ZSFXns4owIDAQAB'
|
||||
export default {
|
||||
name: 'ModuleLogin',
|
||||
data () {
|
||||
@@ -87,7 +86,7 @@ export default {
|
||||
this.baseUrl = this.serverUrl
|
||||
},
|
||||
methods: {
|
||||
...mapActions(['setServerUrl']),
|
||||
...mapActions(['setServerUrl', 'setToken']),
|
||||
saveSetup () {
|
||||
this.setServerUrl(this.baseUrl)
|
||||
this.tab = 0
|
||||
@@ -109,12 +108,9 @@ export default {
|
||||
async _authlogin () {
|
||||
try {
|
||||
let res = await authlogin(this.username, this.encryptData(this.password))
|
||||
if (res.code === '1') {
|
||||
// let obj = {}
|
||||
// obj = Object.assign({}, res.result)
|
||||
// this.$store.dispatch('userInfo', JSON.stringify(obj))
|
||||
// this.$store.dispatch('setLoginInfo', {username: this.username, password: this.password})
|
||||
this.$router.push('/hub')
|
||||
if (res.code === 200) {
|
||||
this.setToken(res.data.token)
|
||||
this.$router.push('/hub?user=' + res.data.user.userName)
|
||||
} else {
|
||||
this.Dialog(res.desc)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user