|
@@ -1,9 +1,10 @@
|
|
|
-<template></template>
|
|
|
|
|
|
|
+<template>
|
|
|
|
|
+
|
|
|
|
|
+</template>
|
|
|
<script>
|
|
<script>
|
|
|
import user from '@/http/api/user'
|
|
import user from '@/http/api/user'
|
|
|
import { setToken } from '@/utils/auth'
|
|
import { setToken } from '@/utils/auth'
|
|
|
-// import { getToken} from '@/utils/auth';
|
|
|
|
|
-import { encrypt } from '@/utils/jsencrypt'
|
|
|
|
|
|
|
+
|
|
|
import base from '@/http/common/base'
|
|
import base from '@/http/common/base'
|
|
|
export default {
|
|
export default {
|
|
|
data() {
|
|
data() {
|
|
@@ -72,7 +73,7 @@ export default {
|
|
|
console.log('打印用户信息', userInfo)
|
|
console.log('打印用户信息', userInfo)
|
|
|
this.$store.dispatch('user/CLEAR_LOCAL_STORAGE') //清空本地存储
|
|
this.$store.dispatch('user/CLEAR_LOCAL_STORAGE') //清空本地存储
|
|
|
setToken(userInfo.tokenValue)
|
|
setToken(userInfo.tokenValue)
|
|
|
- sessionStorage.setItem('schoolType', 2) //1:单校 2:联校// 暂时写死单校 线上还是单校的
|
|
|
|
|
|
|
+ sessionStorage.setItem('schoolType', 1) //1:单校 2:联校// 暂时写死单校 线上还是单校的
|
|
|
this.$store.dispatch('user/SET_TOKEN', userInfo.tokenValue)
|
|
this.$store.dispatch('user/SET_TOKEN', userInfo.tokenValue)
|
|
|
this.$store.dispatch('user/SET_SCHOOL_LOGO', userInfo.schoolLogoUrl) //设置学校logo
|
|
this.$store.dispatch('user/SET_SCHOOL_LOGO', userInfo.schoolLogoUrl) //设置学校logo
|
|
|
this.$store.dispatch('user/SET_SCHOOL_WEB_SITE_ID', userInfo.cloudMonitorSiteId || '') //设置学校网站id
|
|
this.$store.dispatch('user/SET_SCHOOL_WEB_SITE_ID', userInfo.cloudMonitorSiteId || '') //设置学校网站id
|