mirror of
				https://github.com/1Panel-dev/1Panel.git
				synced 2025-10-30 18:56:20 +08:00 
			
		
		
		
	fix: 解决面板设置部分界面密码过期仍然能访问的问题
This commit is contained in:
		
							parent
							
								
									5527ef73ad
								
							
						
					
					
						commit
						a94e78d31e
					
				
					 3 changed files with 6 additions and 3 deletions
				
			
		|  | @ -36,7 +36,7 @@ | ||||||
| 
 | 
 | ||||||
| <script lang="ts" setup> | <script lang="ts" setup> | ||||||
| import LayoutContent from '@/layout/layout-content.vue'; | 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 { onMounted, ref } from 'vue'; | ||||||
| import 'md-editor-v3/lib/style.css'; | import 'md-editor-v3/lib/style.css'; | ||||||
| import SystemUpgrade from '@/components/system-upgrade/index.vue'; | import SystemUpgrade from '@/components/system-upgrade/index.vue'; | ||||||
|  | @ -63,6 +63,7 @@ const toGithubStar = () => { | ||||||
| 
 | 
 | ||||||
| onMounted(() => { | onMounted(() => { | ||||||
|     search(); |     search(); | ||||||
|  |     getSystemAvailable(); | ||||||
| }); | }); | ||||||
| </script> | </script> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -49,7 +49,7 @@ | ||||||
| import { onMounted, reactive, ref } from 'vue'; | import { onMounted, reactive, ref } from 'vue'; | ||||||
| import { FormInstance } from 'element-plus'; | import { FormInstance } from 'element-plus'; | ||||||
| import LayoutContent from '@/layout/layout-content.vue'; | 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 { useDeleteData } from '@/hooks/use-delete-data'; | ||||||
| import { Rules, checkNumberRange } from '@/global/form-rules'; | import { Rules, checkNumberRange } from '@/global/form-rules'; | ||||||
| import i18n from '@/lang'; | import i18n from '@/lang'; | ||||||
|  | @ -110,5 +110,6 @@ const onClean = async () => { | ||||||
| 
 | 
 | ||||||
| onMounted(() => { | onMounted(() => { | ||||||
|     search(); |     search(); | ||||||
|  |     getSystemAvailable(); | ||||||
| }); | }); | ||||||
| </script> | </script> | ||||||
|  |  | ||||||
|  | @ -137,7 +137,7 @@ import { ElForm, ElMessageBox } from 'element-plus'; | ||||||
| import { Setting } from '@/api/interface/setting'; | import { Setting } from '@/api/interface/setting'; | ||||||
| import LayoutContent from '@/layout/layout-content.vue'; | import LayoutContent from '@/layout/layout-content.vue'; | ||||||
| import DrawerHeader from '@/components/drawer-header/index.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 i18n from '@/lang'; | ||||||
| import { Rules, checkNumberRange } from '@/global/form-rules'; | import { Rules, checkNumberRange } from '@/global/form-rules'; | ||||||
| import { dateFormatSimple } from '@/utils/util'; | import { dateFormatSimple } from '@/utils/util'; | ||||||
|  | @ -326,5 +326,6 @@ function loadTimeOut() { | ||||||
| 
 | 
 | ||||||
| onMounted(() => { | onMounted(() => { | ||||||
|     search(); |     search(); | ||||||
|  |     getSystemAvailable(); | ||||||
| }); | }); | ||||||
| </script> | </script> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue