修改 数据中心测试bug

This commit is contained in:
GGJ
2024-11-13 16:21:08 +08:00
parent 7640b53b20
commit e53a3dd8dd
11 changed files with 1721 additions and 7 deletions

View File

@@ -68,7 +68,7 @@
import { onMounted, onBeforeUnmount, reactive, ref, nextTick } from 'vue'
import * as pageBubble from '@/utils/pageBubble'
import { ElMessage } from 'element-plus'
import { gongkey, login } from '@/api/user-boot/user'
import { gongkey, login,getSysConfig } from '@/api/user-boot/user'
import { useAdminInfo } from '@/stores/adminInfo'
import type { FormInstance, InputInstance, FormRules } from 'element-plus'
import { useRouter } from 'vue-router'
@@ -164,6 +164,9 @@ const onSubmit = async (formEl: FormInstance | undefined) => {
.then(res => {
userInfo.dataFill(res.data)
state.submitLoading = false
getSysConfig().then(res => {
window.localStorage.setItem('sysdata', JSON.stringify(res.data))
})
router.push({
path: '/'
})