|
@@ -9,6 +9,7 @@ import { postMessage } from '@/helpers/native-message'
|
|
import { Icon } from 'vant'
|
|
import { Icon } from 'vant'
|
|
import { browser } from '@/helpers/utils'
|
|
import { browser } from '@/helpers/utils'
|
|
import ColSticky from '@/components/col-sticky'
|
|
import ColSticky from '@/components/col-sticky'
|
|
|
|
+import { state } from '@/state'
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
setup() {
|
|
setup() {
|
|
@@ -16,7 +17,12 @@ export default defineComponent({
|
|
const navBarHeight = ref(0)
|
|
const navBarHeight = ref(0)
|
|
|
|
|
|
const onDetail = () => {
|
|
const onDetail = () => {
|
|
- router.push('/memberCenter')
|
|
|
|
|
|
+ // 判断是否是机构学生
|
|
|
|
+ if (state.user.data.tenantId > 0) {
|
|
|
|
+ window.location.href = location.origin + '/tenant.html#/memberCenter'
|
|
|
|
+ } else {
|
|
|
|
+ router.push('/memberCenter')
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
const onBack = () => {
|
|
const onBack = () => {
|