1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-19 08:19:15 +08:00

fix: 解决面板设置部分界面密码过期仍然能访问的问题

This commit is contained in:
ssongliu 2023-03-13 18:35:34 +08:00 committed by ssongliu
parent 5527ef73ad
commit a94e78d31e
3 changed files with 6 additions and 3 deletions

View File

@ -36,7 +36,7 @@
<script lang="ts" setup>
import LayoutContent from '@/layout/layout-content.vue';
import { getSettingInfo } from '@/api/modules/setting';
import { getSettingInfo, getSystemAvailable } from '@/api/modules/setting';
import { onMounted, ref } from 'vue';
import 'md-editor-v3/lib/style.css';
import SystemUpgrade from '@/components/system-upgrade/index.vue';
@ -63,6 +63,7 @@ const toGithubStar = () => {
onMounted(() => {
search();
getSystemAvailable();
});
</script>

View File

@ -49,7 +49,7 @@
import { onMounted, reactive, ref } from 'vue';
import { FormInstance } from 'element-plus';
import LayoutContent from '@/layout/layout-content.vue';
import { cleanMonitors, getSettingInfo, updateSetting } from '@/api/modules/setting';
import { cleanMonitors, getSettingInfo, getSystemAvailable, updateSetting } from '@/api/modules/setting';
import { useDeleteData } from '@/hooks/use-delete-data';
import { Rules, checkNumberRange } from '@/global/form-rules';
import i18n from '@/lang';
@ -110,5 +110,6 @@ const onClean = async () => {
onMounted(() => {
search();
getSystemAvailable();
});
</script>

View File

@ -137,7 +137,7 @@ import { ElForm, ElMessageBox } from 'element-plus';
import { Setting } from '@/api/interface/setting';
import LayoutContent from '@/layout/layout-content.vue';
import DrawerHeader from '@/components/drawer-header/index.vue';
import { updateSetting, getMFA, bindMFA, getSettingInfo, updatePort } from '@/api/modules/setting';
import { updateSetting, getMFA, bindMFA, getSettingInfo, updatePort, getSystemAvailable } from '@/api/modules/setting';
import i18n from '@/lang';
import { Rules, checkNumberRange } from '@/global/form-rules';
import { dateFormatSimple } from '@/utils/util';
@ -326,5 +326,6 @@ function loadTimeOut() {
onMounted(() => {
search();
getSystemAvailable();
});
</script>