fix: bug管理员初始化取消
This commit is contained in:
parent
ae2758b5ba
commit
1fae2c24f7
|
@ -134,14 +134,10 @@ const submitData = async () => {
|
|||
* 判断是否已有配置
|
||||
*/
|
||||
const judgeInitSet = async () => {
|
||||
if (userInfo.$state.userInfos.username === 'admin') {
|
||||
const resp: any = await getInit();
|
||||
if (resp.status === 200 && resp.result.length) {
|
||||
window.location.href = '/';
|
||||
}
|
||||
} else {
|
||||
window.location.href = '/';
|
||||
}
|
||||
};
|
||||
onMounted(() => {
|
||||
judgeInitSet();
|
||||
|
|
Loading…
Reference in New Issue