提交 0eae8d61 编写于 作者: KK's avatar KK

第三方容器按钮

上级 7b312db1
......@@ -199,16 +199,18 @@ export default class AppSetting extends Vue {
public async logout() {
localStorage.clear();
this.$store.commit('addAppData', null);
Util.clearCookie('ibzuaa-token',true);
Util.clearCookie('ibzuaa-user',true);
const title: any = this.$t("app.tabpage.sureclosetip.title");
const result = await this.$notice.confirm(title, "确认退出当前账号?");
if (result) {
if (this.thirdPartyName) {
this.$viewTool.ThirdPartyClose();
return;
}
const get: Promise<any> = this.$http.get("v7/logout");
get.then((response: any) => {
if (response && response.status === 200) {
if (this.thirdPartyName) {
this.$viewTool.ThirdPartyClose();
return;
}
this.doLogin();
}
})
......
......@@ -374,7 +374,14 @@ export class DingTalkService {
fun({ tag: btn.name });
}
});
}
}else{
dd.biz.navigation.setRight({
show: false,//控制按钮显示, true 显示, false 隐藏, 默认true
control: false,//是否控制点击事件,true 控制,false 不控制, 默认false
text: '',//控制显示文本,空字符串表示显示默认文本
onSuccess: () => {
}
});
// 多个按钮 todo
}
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册