|
@@ -573,7 +573,7 @@
|
|
|
import Header from '@/components/Header';
|
|
|
import { getConfigInfor } from '@/utils/index';
|
|
|
import { getStaticContent, BookgetContent, LearnWebSI } from '@/api/api';
|
|
|
-import { setToken } from '@/utils/auth';
|
|
|
+import { setToken, getToken } from '@/utils/auth';
|
|
|
import * as echarts from 'echarts';
|
|
|
|
|
|
export default {
|
|
@@ -1459,6 +1459,13 @@ export default {
|
|
|
if (this.keyword && this.keyword.trim()) {
|
|
|
this.getdata(true);
|
|
|
}
|
|
|
+ let userInfor = getToken()
|
|
|
+ ? JSON.parse(getToken())
|
|
|
+ : sessionStorage.getItem('GCLS_Token_Tc')
|
|
|
+ ? JSON.parse(sessionStorage.getItem('GCLS_Token_Tc'))
|
|
|
+ : null;
|
|
|
+ // userInfor.popedom_code_list = [2000004, 2000001, 2000007, 9000001];
|
|
|
+ this.editLiju = userInfor && userInfor.popedom_code_list && userInfor.popedom_code_list.indexOf(9000001) > -1;
|
|
|
},
|
|
|
//生命周期 - 挂载完成(可以访问DOM元素)
|
|
|
mounted() {},
|