补充
This commit is contained in:
@@ -1785,6 +1785,7 @@ export default {
|
|||||||
homeInstruction:'Set the system home page',
|
homeInstruction:'Set the system home page',
|
||||||
home: 'System home page',
|
home: 'System home page',
|
||||||
homeTip:'Do you want to submit the current interface as the system interface?',
|
homeTip:'Do you want to submit the current interface as the system interface?',
|
||||||
|
homeSet:'System home page Settings',
|
||||||
},
|
},
|
||||||
role:{
|
role:{
|
||||||
allScopeOptions:'All data permissions',
|
allScopeOptions:'All data permissions',
|
||||||
|
|||||||
@@ -1785,6 +1785,7 @@ export default {
|
|||||||
homeInstruction:'设置系统首页界面',
|
homeInstruction:'设置系统首页界面',
|
||||||
home: '系统首页',
|
home: '系统首页',
|
||||||
homeTip:'确认要提交当前界面为系统界面吗?',
|
homeTip:'确认要提交当前界面为系统界面吗?',
|
||||||
|
homeSet:'系统首页设置',
|
||||||
},
|
},
|
||||||
role:{
|
role:{
|
||||||
allScopeOptions:'全部数据权限',
|
allScopeOptions:'全部数据权限',
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import {
|
|||||||
reactive,
|
reactive,
|
||||||
} from 'vue';
|
} from 'vue';
|
||||||
import { listMenu } from '@/api/system/menu';
|
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 { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
|
||||||
import { message } from 'ant-design-vue';
|
import { message } from 'ant-design-vue';
|
||||||
|
|
||||||
@@ -19,7 +19,7 @@ const currentComponent = shallowRef(
|
|||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
//获取当前系统设置的首页路径 111为configID
|
//获取当前系统设置的首页路径 111为configID
|
||||||
getConfig(111).then(res => {
|
getConfigKey('sys.homePage').then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS && res.data) {
|
if (res.code === RESULT_CODE_SUCCESS && res.data) {
|
||||||
if (res.data.configValue) {
|
if (res.data.configValue) {
|
||||||
currentComponent.value = defineAsyncComponent(
|
currentComponent.value = defineAsyncComponent(
|
||||||
|
|||||||
@@ -3,11 +3,9 @@ import { Modal, message } from 'ant-design-vue/lib';
|
|||||||
import { onMounted, reactive, toRaw } from 'vue';
|
import { onMounted, reactive, toRaw } from 'vue';
|
||||||
import useAppStore from '@/store/modules/app';
|
import useAppStore from '@/store/modules/app';
|
||||||
import useI18n from '@/hooks/useI18n';
|
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 { listMenu } from '@/api/system/menu';
|
||||||
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
|
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 appStore = useAppStore();
|
||||||
const { t, optionsLocale } = useI18n();
|
const { t, optionsLocale } = useI18n();
|
||||||
@@ -69,7 +67,7 @@ onMounted(() => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
//获取当前系统设置的首页路径 111为configID
|
//获取当前系统设置的首页路径 111为configID
|
||||||
getConfig(111).then(res => {
|
getConfigKey('sys.homePage').then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS && res.data) {
|
if (res.code === RESULT_CODE_SUCCESS && res.data) {
|
||||||
state.default = res.data.configValue;
|
state.default = res.data.configValue;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ const { t } = useI18n();
|
|||||||
<ChangeI18n></ChangeI18n>
|
<ChangeI18n></ChangeI18n>
|
||||||
</div>
|
</div>
|
||||||
<a-divider orientation="left">
|
<a-divider orientation="left">
|
||||||
系统首页设置
|
{{t('views.system.setting.homeSet') }}
|
||||||
</a-divider>
|
</a-divider>
|
||||||
<ChangeHome></ChangeHome>
|
<ChangeHome></ChangeHome>
|
||||||
<a-divider orientation="left">
|
<a-divider orientation="left">
|
||||||
|
|||||||
Reference in New Issue
Block a user