@@ -44,15 +44,21 @@ export default {
allowed: false,
}),
created() {},
- mounted() {
- this.checkBind();
- },
computed: {
...mapState(['user']),
// is_allowed() {
// return JSON.parse(sessionStorage.getItem('is_allowed'));
// },
},
+ watch: {
+ user: {
+ deep: true,
+ immediate: true,
+ handler(val) {
+ if (val && val.corpid) this.checkBind();
+ },
methods: {
...mapActions(['corpOperation']),
async getInfo() {