Skip to content

Commit

Permalink
perf: 进入system组织问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Halo1236 committed Aug 22, 2024
1 parent 9f6a2ed commit 007276d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/layout/components/NavHeader/AccountDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@

<script>
import { mapGetters } from 'vuex'
import { SYSTEM_ORG_ID } from '@/utils/org'
export default {
name: 'AccountDropdown',
Expand Down Expand Up @@ -74,6 +75,10 @@ export default {
}
},
logout() {
const currentOrg = this.store.getters.currentOrg
if (currentOrg === SYSTEM_ORG_ID) {
this.$store.dispatch('users/leaveSettingOrg')
}
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion utils/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
utils_dir=$(pwd)
project_dir=$(dirname "$utils_dir")
release_dir=${project_dir}/release
VERSION=v3.10.12

if [[ $(uname) == 'Darwin' ]]; then
alias sedi="sed -i ''"
Expand All @@ -12,7 +13,7 @@ else
fi

function change_version() {
sedi "s@version-dev@${VERSION}@g" "${project_dir}/src/layout/components/NavHeader/About.vue" || return 2
sed -i '' "s@version-dev@${VERSION}@g" "${project_dir}/src/layout/components/NavHeader/About.vue" || return 2
}

function install_deps() {
Expand Down

0 comments on commit 007276d

Please sign in to comment.