😎去掉首页判断公匙是否空的逻辑
This commit is contained in:
parent
33858b7f1a
commit
e11704d0e9
@ -149,6 +149,11 @@ onMounted(async () => {
|
||||
const accessToken = route.query.token;
|
||||
if (accessToken) await saveTokenAndInitRoutes(accessToken);
|
||||
|
||||
// // 若公钥为空则刷新页面
|
||||
// if (window.__env__.VITE_SM_PUBLIC_KEY == '' || window.__env__.VITE_SM_PUBLIC_KEY == undefined) {
|
||||
// window.location.reload();
|
||||
// }
|
||||
|
||||
// 获取登录配置
|
||||
state.secondVerEnabled = themeConfig.value.secondVer ?? false;
|
||||
state.captchaEnabled = themeConfig.value.captcha ?? true;
|
||||
@ -192,9 +197,6 @@ const getCaptcha = async () => {
|
||||
state.captchaImage = 'data:text/html;base64,' + res?.img;
|
||||
state.expirySeconds = res?.expirySeconds;
|
||||
state.ruleForm.codeId = res?.id;
|
||||
if (state.captchaImage != '' && window.__env__.VITE_SM_PUBLIC_KEY == '') {
|
||||
window.location.reload();
|
||||
}
|
||||
};
|
||||
|
||||
// 获取时间
|
||||
|
||||
Loading…
Reference in New Issue
Block a user