wangyanshen
2023-01-11 4638422d5a6b8146ec0f8ddd1bf17160330a2049
src/components/GlobalHeader/GlobalHeader.vue
@@ -116,7 +116,7 @@
    },
  },
  methods: {
    ...mapActions(["Logout","MenuChange", "SetModelSelectKeys"]),
    ...mapActions(["Logout", "MenuChange", "SetModelSelectKeys"]),
    switchApp(appCode) {
      const applicationData = this.userInfo.apps.filter(
        (item) => item.code === appCode
@@ -124,13 +124,13 @@
      this.MenuChange(applicationData[0]).then((res) => {});
    },
    handleLogout() {
      this.$confirm({
        title: "提示",
        content: "真的要注销登录吗 ?",
        okText: "确定",
        cancelText: "取消",
        onOk: () => {
          return this.Logout({})
      this.$confirm("真的要注销登录吗 ?", "提示", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning",
      })
        .then(() => {
          this.Logout({})
            .then(() => {
              window.location.reload();
              setTimeout(() => {}, 16);
@@ -141,9 +141,13 @@
                description: err.message,
              });
            });
        },
        onCancel() {},
      });
        })
        .catch((err) => {
          this.$message.error({
            title: "错误",
            description: err.message,
          });
        });
    },
    toggle() {
      this.$emit("toggle");
@@ -154,7 +158,7 @@
</script>
<style  scoped>
.headerbox{
.headerbox {
  display: flex;
  justify-content: space-between;
}