diff --git a/.env.production b/.env.production index b7f30f3..0919367 100644 --- a/.env.production +++ b/.env.production @@ -22,4 +22,4 @@ VITE_APP_BUILD_BASE_PATH = 'https://prev.ysaix.com:7868/' VITE_APP_WS_URL = 'wss://file.ysaix.com:7868' # 是否显示开发工具 -VITE_SHOW_DEV_TOOLS = 'true' +VITE_SHOW_DEV_TOOLS = 'false' diff --git a/src/renderer/src/layout/components/Aside.vue b/src/renderer/src/layout/components/Aside.vue index 9182498..ba32ca5 100644 --- a/src/renderer/src/layout/components/Aside.vue +++ b/src/renderer/src/layout/components/Aside.vue @@ -11,7 +11,7 @@
diff --git a/src/renderer/src/views/profile/index.vue b/src/renderer/src/views/profile/index.vue index 93fc043..9b7fff4 100644 --- a/src/renderer/src/views/profile/index.vue +++ b/src/renderer/src/views/profile/index.vue @@ -4,7 +4,7 @@
{{ state.user.nickName }}
-
+
@@ -35,7 +35,7 @@ import { getUserProfile } from '@/api/system/user' import pkc from "../../../../../package.json" //选择学校和班级 import selectClass from './components/selectClass.vue' - +import useUserStore from '@/store/modules/user' const version = ref(pkc.version) const activeTab = ref('userinfo') @@ -46,6 +46,12 @@ const state = reactive({ postGroup: {} }) +const isStadium = () => { + let user = useUserStore().user + let roles = user.roles + return roles.some(item => item.roleKey === 'stadium') +} + const isSubject = ref(false) async function getUser() { getUserProfile().then((response) => {