This commit is contained in:
lai
2024-10-16 14:23:32 +08:00
parent 53d9e63c36
commit a67e54ca6e
5 changed files with 7 additions and 7 deletions

View File

@@ -1785,6 +1785,7 @@ export default {
homeInstruction:'Set the system home page',
home: 'System home page',
homeTip:'Do you want to submit the current interface as the system interface?',
homeSet:'System home page Settings',
},
role:{
allScopeOptions:'All data permissions',

View File

@@ -1785,6 +1785,7 @@ export default {
homeInstruction:'设置系统首页界面',
home: '系统首页',
homeTip:'确认要提交当前界面为系统界面吗?',
homeSet:'系统首页设置',
},
role:{
allScopeOptions:'全部数据权限',

View File

@@ -8,7 +8,7 @@ import {
reactive,
} from 'vue';
import { listMenu } from '@/api/system/menu';
import { getConfig, changeValue } from '@/api/system/config';
import { getConfig, getConfigKey,changeValue } from '@/api/system/config';
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
import { message } from 'ant-design-vue';
@@ -19,7 +19,7 @@ const currentComponent = shallowRef(
onMounted(() => {
//获取当前系统设置的首页路径 111为configID
getConfig(111).then(res => {
getConfigKey('sys.homePage').then(res => {
if (res.code === RESULT_CODE_SUCCESS && res.data) {
if (res.data.configValue) {
currentComponent.value = defineAsyncComponent(

View File

@@ -3,11 +3,9 @@ import { Modal, message } from 'ant-design-vue/lib';
import { onMounted, reactive, toRaw } from 'vue';
import useAppStore from '@/store/modules/app';
import useI18n from '@/hooks/useI18n';
import { CACHE_LOCAL_I18N } from '@/constants/cache-keys-constants';
import { localSet } from '@/utils/cache-local-utils';
import { listMenu } from '@/api/system/menu';
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
import { getConfig, changeValue } from '@/api/system/config';
import { getConfig, getConfigKey, changeValue } from '@/api/system/config';
const appStore = useAppStore();
const { t, optionsLocale } = useI18n();
@@ -69,7 +67,7 @@ onMounted(() => {
});
//获取当前系统设置的首页路径 111为configID
getConfig(111).then(res => {
getConfigKey('sys.homePage').then(res => {
if (res.code === RESULT_CODE_SUCCESS && res.data) {
state.default = res.data.configValue;
}

View File

@@ -51,7 +51,7 @@ const { t } = useI18n();
<ChangeI18n></ChangeI18n>
</div>
<a-divider orientation="left">
系统首页设置
{{t('views.system.setting.homeSet') }}
</a-divider>
<ChangeHome></ChangeHome>
<a-divider orientation="left">