|
@@ -108,6 +108,7 @@ import { updateGroupUserAccount } from '@/api/enterprise'
|
|
import { getDict } from '@/hooks/web/useDictionaries'
|
|
import { getDict } from '@/hooks/web/useDictionaries'
|
|
import { getUserAvatar } from '@/utils/avatar'
|
|
import { getUserAvatar } from '@/utils/avatar'
|
|
import { uploadFile } from '@/api/common'
|
|
import { uploadFile } from '@/api/common'
|
|
|
|
+import { getToken } from '@/utils/auth'
|
|
|
|
|
|
const { t } = useI18n()
|
|
const { t } = useI18n()
|
|
const total = ref(0)
|
|
const total = ref(0)
|
|
@@ -199,6 +200,10 @@ const handleAction = (type, index, item) => {
|
|
|
|
|
|
// 打开生成邀请链接页面
|
|
// 打开生成邀请链接页面
|
|
const handleAdd = (type) => {
|
|
const handleAdd = (type) => {
|
|
|
|
+ if (!getToken()) {
|
|
|
|
+ window.location.reload()
|
|
|
|
+ return
|
|
|
|
+ }
|
|
// type: 类型(0 邀请同事 | 1 邀请子公司)
|
|
// type: 类型(0 邀请同事 | 1 邀请子公司)
|
|
window.open(`/recruit/enterprise/systemManagement/groupAccount/invite/${type}`)
|
|
window.open(`/recruit/enterprise/systemManagement/groupAccount/invite/${type}`)
|
|
}
|
|
}
|