@jx3box/jx3box-common-ui 7.1.9 → 7.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/header/userInfo.vue +6 -1
package/package.json
CHANGED
package/src/header/userInfo.vue
CHANGED
|
@@ -135,7 +135,7 @@ export default {
|
|
|
135
135
|
methods: {
|
|
136
136
|
copyText,
|
|
137
137
|
showAvatar,
|
|
138
|
-
logout: function () {
|
|
138
|
+
logout: function (mute=false) {
|
|
139
139
|
User.destroy()
|
|
140
140
|
.then((res) => {
|
|
141
141
|
this.$emit("logout");
|
|
@@ -144,6 +144,7 @@ export default {
|
|
|
144
144
|
}
|
|
145
145
|
})
|
|
146
146
|
.then(() => {
|
|
147
|
+
if (mute) return;
|
|
147
148
|
this.$notify({
|
|
148
149
|
title: "成功",
|
|
149
150
|
message: "登出成功",
|
|
@@ -159,6 +160,10 @@ export default {
|
|
|
159
160
|
getMyInfo().then((data) => {
|
|
160
161
|
this.user = data;
|
|
161
162
|
this.isSuperAuthor = !!data.sign;
|
|
163
|
+
|
|
164
|
+
if (this.user.deleted) {
|
|
165
|
+
this.logout(true);
|
|
166
|
+
}
|
|
162
167
|
});
|
|
163
168
|
},
|
|
164
169
|
},
|