---修改输入数字组件bug
1、调整日期范围组件为不可修改
This commit is contained in:
13
src/App.vue
13
src/App.vue
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<ConfigProvider :locale="antdLocal">
|
||||
<AppProvider>
|
||||
<ConfigProvider :locale="antdLocal" >
|
||||
<AppProvider class="app lng-theme-primary">
|
||||
<RouterView />
|
||||
</AppProvider>
|
||||
</ConfigProvider>
|
||||
@ -17,9 +17,10 @@
|
||||
import { useLocale } from '/@/locales/useLocale';
|
||||
import { useAppStore } from '/@/store/modules/app';
|
||||
import 'dayjs/locale/zh-cn';
|
||||
import { computed } from 'vue';
|
||||
import { computed,onMounted } from 'vue';
|
||||
import { getLogoInfo } from './api/system/login';
|
||||
import { onBeforeUnmount } from 'vue';
|
||||
import { AppTheme } from '/@/utils/theme';
|
||||
//import { getAppEnvConfig } from '/@/utils/env';
|
||||
// support Multi-language
|
||||
|
||||
@ -46,9 +47,14 @@
|
||||
if (getLocale.value === 'zh_TW') {
|
||||
return zhTW;
|
||||
}
|
||||
|
||||
return zhCN;
|
||||
});
|
||||
|
||||
onMounted(()=>{
|
||||
AppTheme.init();
|
||||
})
|
||||
|
||||
const beforeUnloadHandler = (e) => {
|
||||
if (e) {
|
||||
e.returnValue = '关闭提示';
|
||||
@ -63,6 +69,7 @@
|
||||
onBeforeUnmount(() => {
|
||||
window.removeEventListener('beforeunload', beforeUnloadHandler);
|
||||
});
|
||||
|
||||
|
||||
// Listening to page changes and dynamically changing site titles
|
||||
//useTitle();
|
||||
|
||||
Reference in New Issue
Block a user