@@ -62,7 +62,10 @@ export default {
// 监听切换用户
'userInfo.userName': {
handler(val) {
- if (val) this.getDict();
+ if (val) {
+ this.getDict();
+ this.getReportInfo();
+ }
},
immediete: true,
@@ -79,7 +82,6 @@ export default {
created() {
this.getDict();
- this.getReportInfo();
methods: {
async getDict() {