|
|
|
@ -9,7 +9,14 @@ import { computed } from 'vue'; |
|
|
|
|
import { ElConfigProvider } from 'element-plus'; |
|
|
|
|
import { useI18n } from 'vue-i18n'; |
|
|
|
|
import { getElementPlusLocale } from '@/i18n'; |
|
|
|
|
import Cookies from 'js-cookie'; |
|
|
|
|
|
|
|
|
|
const { locale } = useI18n({ useScope: 'global' }); |
|
|
|
|
const lang = computed(() => getElementPlusLocale(locale.value as string)); |
|
|
|
|
|
|
|
|
|
console.log(33, document.referrer); |
|
|
|
|
// 保证同一个浏览器只有一个当前系统能打开 |
|
|
|
|
if (!document.referrer) { |
|
|
|
|
window.location.href = decodeURIComponent(Cookies.get('sand-referrer')); |
|
|
|
|
} |
|
|
|
|
</script> |
|
|
|
|