提示框位置下移

This commit is contained in:
lai
2024-06-20 14:53:20 +08:00
parent 0e4e8e09e6
commit 0b64302b54
3 changed files with 7 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
import { onBeforeMount } from 'vue'; import { onBeforeMount } from 'vue';
import { ConfigProvider } from 'ant-design-vue/lib'; import { ConfigProvider, message } from 'ant-design-vue/lib';
import { CACHE_LOCAL_PRIMARY_COLOR } from '@/constants/cache-keys-constants'; import { CACHE_LOCAL_PRIMARY_COLOR } from '@/constants/cache-keys-constants';
import { localGet, localSet } from '@/utils/cache-local-utils'; import { localGet, localSet } from '@/utils/cache-local-utils';
@@ -8,6 +8,7 @@ import { localGet, localSet } from '@/utils/cache-local-utils';
*/ */
export const usePrimaryColor = () => { export const usePrimaryColor = () => {
onBeforeMount(() => { onBeforeMount(() => {
message.config({ top: '100px' }); // 全局配置消息距离顶部的位置
changePrimaryColor(getLocalColor()); changePrimaryColor(getLocalColor());
}); });
}; };

View File

@@ -57,7 +57,7 @@ export default {
updateTime: 'Update Time', updateTime: 'Update Time',
remark: 'Remark', remark: 'Remark',
description: 'Description', description: 'Description',
operate: 'Operation', operate: 'More Action',
operateOk: 'Operation Successful!', operateOk: 'Operation Successful!',
operateErr: 'Operation Failed!', operateErr: 'Operation Failed!',
copyText: "Copy", copyText: "Copy",
@@ -1360,7 +1360,7 @@ export default {
status0: "Failures", status0: "Failures",
status1: "Active", status1: "Active",
createTime: "Time", createTime: "Time",
costTime: "Time Consumption", costTime: "Time Lap",
viewLog: "Scheduling log Info", viewLog: "Scheduling log Info",
delTip: "Are you sure you want to delete the scheduling log entry with the number [{num}]?", delTip: "Are you sure you want to delete the scheduling log entry with the number [{num}]?",
delOk: "Deleted Successfully", delOk: "Deleted Successfully",
@@ -1803,13 +1803,13 @@ export default {
operate:{ operate:{
operId:'Log ID', operId:'Log ID',
moduleName:'Module Name', moduleName:'Module Name',
workType:'Business Type', workType:'Operation',
operUser:'Operator', operUser:'Operator',
requestMe:'Request Method', requestMe:'Request Method',
host:'Request Host', host:'Request Host',
operStatus:'Status', operStatus:'Status',
operDate:'Time', operDate:'Time',
useTime:'Time Consumption', useTime:'Time Lap',
logInfo:'Operation Log Information', logInfo:'Operation Log Information',
delSure:'Are you sure to delete the data item with access number [{ids}]?', delSure:'Are you sure to delete the data item with access number [{ids}]?',
delAllSure:'Confirm to clear all login log data items?', delAllSure:'Confirm to clear all login log data items?',

View File

@@ -47,7 +47,7 @@ function fnFinish() {
.fnLogin(toRaw(state.from)) .fnLogin(toRaw(state.from))
.then(res => { .then(res => {
if (res.code === RESULT_CODE_SUCCESS) { if (res.code === RESULT_CODE_SUCCESS) {
message.success(t('views.login.loginSuccess'), 3); message.success(t('views.login.loginSuccess'), 1);
/**登录后重定向页面 */ /**登录后重定向页面 */
const redirectPath = route.query?.redirect || '/index'; const redirectPath = route.query?.redirect || '/index';
router.push({ path: redirectPath as string }); router.push({ path: redirectPath as string });