|
|
@@ -181,23 +181,25 @@ export default {
|
|
|
},
|
|
|
mounted() {
|
|
|
this.$store.dispatch('getUserInfo');
|
|
|
- this.$http
|
|
|
- .post(
|
|
|
- '/identityAuth/all',
|
|
|
- {
|
|
|
- query: {
|
|
|
- userId: this.$store.state.userInfo.id
|
|
|
+ if (this.isLogin) {
|
|
|
+ this.$http
|
|
|
+ .post(
|
|
|
+ '/identityAuth/all',
|
|
|
+ {
|
|
|
+ query: {
|
|
|
+ userId: this.$store.state.userInfo.id
|
|
|
+ }
|
|
|
+ },
|
|
|
+ { body: 'json' }
|
|
|
+ )
|
|
|
+ .then(res => {
|
|
|
+ if (!res.empty) {
|
|
|
+ this.form = res.content[0];
|
|
|
+ this.org = this.form.org;
|
|
|
+ console.log(this.org);
|
|
|
}
|
|
|
- },
|
|
|
- { body: 'json' }
|
|
|
- )
|
|
|
- .then(res => {
|
|
|
- if (!res.empty) {
|
|
|
- this.form = res.content[0];
|
|
|
- this.org = this.form.org;
|
|
|
- console.log(this.org);
|
|
|
- }
|
|
|
- });
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
copy() {
|