|
|
@@ -125,7 +125,6 @@ export default {
|
|
|
// 离开公司
|
|
|
leaveCompany() {
|
|
|
this.showLeaveModal = true;
|
|
|
- this.leaveCompany = 1
|
|
|
},
|
|
|
// 加入公司
|
|
|
goCompany() {
|
|
|
@@ -146,6 +145,13 @@ export default {
|
|
|
});
|
|
|
this.$Request.postJson("/app/company/deleteCompany").then(res => {
|
|
|
uni.hideLoading();
|
|
|
+ if(res.code == 0 && res.data && res.data.code != 0){
|
|
|
+ uni.showToast({
|
|
|
+ title: res.data.msg || '已离开公司',
|
|
|
+ icon:'none'
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (res.code === 0) {
|
|
|
// 离开公司之后需要清除缓存的公司信息
|
|
|
uni.removeStorageSync('companyId');
|
|
|
@@ -184,7 +190,6 @@ export default {
|
|
|
|
|
|
// 更换公司
|
|
|
changeCompany() {
|
|
|
- this.leaveCompany = 2
|
|
|
this.showLeaveModal = true;
|
|
|
}
|
|
|
}
|