fix: bug管理员初始化取消
This commit is contained in:
parent
ae2758b5ba
commit
1fae2c24f7
|
@ -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 = '/';
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue