|
@@ -51,7 +51,7 @@ import PersonRank from '@/components/PersonRank'
|
|
|
import Http from '@/js/http.js'
|
|
|
import Apis from '@/js/api.js'
|
|
|
import {notify} from '@/constants/index'
|
|
|
-import {getRolesPermissions, storageGet} from '@/js/index'
|
|
|
+import {defaultValue, getRolesPermissions, storageGet} from '@/js/index'
|
|
|
|
|
|
export default {
|
|
|
name: 'Home',
|
|
@@ -60,6 +60,7 @@ export default {
|
|
|
return {
|
|
|
user: null,
|
|
|
loading: false,
|
|
|
+ defaultValue: defaultValue,
|
|
|
hotTaskList: [],
|
|
|
institutionRank: [],
|
|
|
personRank: [],
|
|
@@ -87,10 +88,10 @@ export default {
|
|
|
// notify('error','用户信息获取失败')
|
|
|
// })
|
|
|
this.setUserInfo()
|
|
|
- if(this.rolesPermissions == null){
|
|
|
- let NewPage = '_empty' + '?time=' + new Date().getTime()/500;
|
|
|
- this.$router.push(NewPage);
|
|
|
- this.$router.go(-1);
|
|
|
+ if (this.rolesPermissions == null) {
|
|
|
+ let NewPage = '_empty' + '?time=' + new Date().getTime() / 500
|
|
|
+ this.$router.push(NewPage)
|
|
|
+ this.$router.go(-1)
|
|
|
}
|
|
|
this.loadData()
|
|
|
},
|
|
@@ -117,7 +118,7 @@ export default {
|
|
|
//notify('warning', 'warning')
|
|
|
//this.loadData()
|
|
|
},
|
|
|
- watch:{
|
|
|
+ watch: {
|
|
|
rolesPermissions (val) {
|
|
|
console.log(this.rolesPermissions)
|
|
|
console.log(val)
|