|
@@ -4,6 +4,8 @@ import { storeToRefs } from 'pinia';
|
|
|
import { useThemeConfig } from '/@/stores/themeConfig';
|
|
|
import { NextLoading } from '/@/utils/loading';
|
|
|
import AnsjerImg from '/@/assets/asj.png';
|
|
|
+import { SystemConfigStore } from '/@/stores/systemConfig';
|
|
|
+import pinia from '/@/stores';
|
|
|
|
|
|
// 引入组件
|
|
|
const Account = defineAsyncComponent(() => import('/@/views/system/login/component/account.vue'));
|
|
@@ -13,6 +15,22 @@ const Scan = defineAsyncComponent(() => import('/@/views/system/login/component/
|
|
|
// 定义变量内容
|
|
|
const storesThemeConfig = useThemeConfig();
|
|
|
const { themeConfig } = storeToRefs(storesThemeConfig);
|
|
|
+const stores = SystemConfigStore(pinia);
|
|
|
+const { systemConfig }: { systemConfig: any } = storeToRefs(stores);
|
|
|
+console.log("=>(index.vue:20) systemConfig", systemConfig.value);
|
|
|
+const keepRecord = computed(() => {
|
|
|
+ return systemConfig.value['login.keep_record'];
|
|
|
+});
|
|
|
+const helpUrl = computed(() => {
|
|
|
+ return systemConfig.value['login.help_url'];
|
|
|
+});
|
|
|
+const privacyUrl= computed(() => {
|
|
|
+ return systemConfig.value['login.privacy_url'];
|
|
|
+});
|
|
|
+const clauseUrl = computed(() => {
|
|
|
+ return systemConfig.value['login.clause_url'];
|
|
|
+});
|
|
|
+
|
|
|
const state = reactive({
|
|
|
tabsActiveName: 'account',
|
|
|
isScan: false,
|
|
@@ -96,13 +114,11 @@ onMounted(() => {
|
|
|
<div class="login-authorization">
|
|
|
<p>Copyright © 2023-2024 Ansjer 版权所有</p>
|
|
|
<p class="la-other">
|
|
|
- <a href="https://beian.miit.gov.cn" target="_blank">晋ICP备18005113号-3</a>
|
|
|
- |
|
|
|
- <a href="https://django-vue-admin.com" target="_blank">帮助</a>
|
|
|
- |
|
|
|
- <a href="#">隐私</a>
|
|
|
+ <a href="https://beian.miit.gov.cn" target="_blank">{{keepRecord}}</a>
|
|
|
|
|
|
|
- <a href="#">条款</a>
|
|
|
+ <a :href="helpUrl || '#'" target="_blank">帮助</a> |
|
|
|
+ <a :href="privacyUrl || '#'" target="_blank">隐私</a> |
|
|
|
+ <a :href="clauseUrl || '#'" target="_blank">条款</a>
|
|
|
</p>
|
|
|
</div>
|
|
|
</div>
|