fix: bug管理员初始化取消

This commit is contained in:
leiqiaochu 2023-03-31 18:05:16 +08:00
parent ae2758b5ba
commit 1fae2c24f7
1 changed files with 2 additions and 6 deletions

View File

@ -134,12 +134,8 @@ const submitData = async () => {
* 判断是否已有配置 * 判断是否已有配置
*/ */
const judgeInitSet = async () => { const judgeInitSet = async () => {
if (userInfo.$state.userInfos.username === 'admin') { const resp: any = await getInit();
const resp: any = await getInit(); if (resp.status === 200 && resp.result.length) {
if (resp.status === 200 && resp.result.length) {
window.location.href = '/';
}
} else {
window.location.href = '/'; window.location.href = '/';
} }
}; };