| | |
| | | }, |
| | | }, |
| | | methods: { |
| | | ...mapActions(["Logout","MenuChange", "SetModelSelectKeys"]), |
| | | ...mapActions(["Logout", "MenuChange", "SetModelSelectKeys"]), |
| | | switchApp(appCode) { |
| | | const applicationData = this.userInfo.apps.filter( |
| | | (item) => item.code === appCode |
| | |
| | | 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); |
| | |
| | | description: err.message, |
| | | }); |
| | | }); |
| | | }, |
| | | onCancel() {}, |
| | | }); |
| | | }) |
| | | .catch((err) => { |
| | | this.$message.error({ |
| | | title: "错误", |
| | | description: err.message, |
| | | }); |
| | | }); |
| | | }, |
| | | toggle() { |
| | | this.$emit("toggle"); |
| | |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .headerbox{ |
| | | .headerbox { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | } |