|
|
@@ -97,7 +97,7 @@ import { RuleContent } from '@/components/common'
|
|
|
import { User, ShieldCheck } from '@vicons/tabler'
|
|
|
import { fetchSendVerify } from '../../api'
|
|
|
import { useStorage } from '@vueuse/core'
|
|
|
-import { useAuthStore } from '@/store'
|
|
|
+import { useAuthStore, useCompanyStore } from '@/store'
|
|
|
import { router } from '@/router'
|
|
|
import { useBasicLayout } from '@/hooks/useBasicLayout'
|
|
|
import { useTheme } from '@/hooks/useTheme'
|
|
|
@@ -287,10 +287,19 @@ function initCaptcha() {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+const companyStore = useCompanyStore()
|
|
|
+const company = computed(() => {
|
|
|
+ return companyStore.company
|
|
|
+})
|
|
|
+
|
|
|
onMounted(() => {
|
|
|
if (window.sessionStorage.getItem('invitor')) {
|
|
|
form.value.invitor = String(window.sessionStorage.getItem('invitor'))
|
|
|
}
|
|
|
+
|
|
|
+ if (company.value.id !== 0 && company.value.userId && company.value.type !== 2) {
|
|
|
+ form.value.invitor = String(company.value.userId)
|
|
|
+ }
|
|
|
})
|
|
|
|
|
|
const showRule = ref(false)
|