前端最新版本同步
This commit is contained in:
@@ -51,6 +51,10 @@
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item prop="tenantId">
|
||||
<span class="descriptions-item-label" style="margin: 0 10px 0 0">连接医保</span>
|
||||
<el-switch v-model="loginForm.invokeYb" @change="topNavChange" size="large"/>
|
||||
</el-form-item>
|
||||
<!--<el-form-item prop="code" v-if="captchaEnabled">
|
||||
<el-input
|
||||
v-model="loginForm.code"
|
||||
@@ -98,7 +102,7 @@
|
||||
<span><el-link :underline="false">Cookies</el-link></span>
|
||||
</div>
|
||||
<span>
|
||||
<el-link :underline="false">Copyright © 2018-2024 his.vip All Rights Reserved. </el-link>
|
||||
<el-link :underline="false">Copyright © 2018-2025 his.vip All Rights Reserved. </el-link>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -151,6 +155,17 @@ watch(
|
||||
{ immediate: true }
|
||||
);
|
||||
|
||||
// 页面加载时从 localStorage 获取 invokeYb 的值
|
||||
onMounted(() => {
|
||||
const storedInvokeYb = localStorage.getItem('invokeYb');
|
||||
if (storedInvokeYb !== null) {
|
||||
loginForm.value.invokeYb = storedInvokeYb === 'true';
|
||||
} else {
|
||||
// 如果 localStorage 中没有值,则设置默认值并保存
|
||||
localStorage.setItem('invokeYb', 'false');
|
||||
}
|
||||
});
|
||||
|
||||
function handleLogin() {
|
||||
proxy.$refs.loginRef.validate((valid) => {
|
||||
if (valid) {
|
||||
@@ -179,10 +194,12 @@ function handleLogin() {
|
||||
}
|
||||
return acc;
|
||||
}, {});
|
||||
if (env === 'development') {
|
||||
if (env === 'development' || !loginForm.value.invokeYb) {
|
||||
router.push({ path: redirect.value || '/', query: otherQueryParams });
|
||||
} else {
|
||||
router.push({ path: redirect.value || '/', query: otherQueryParams });
|
||||
signIng.value = true;
|
||||
userStore.getInfo();
|
||||
GetMacString();
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
@@ -262,6 +279,11 @@ function getCode() {
|
||||
});
|
||||
}
|
||||
|
||||
// 切换医保连接开关时更新 localStorage
|
||||
function topNavChange(value) {
|
||||
localStorage.setItem('invokeYb', value.toString());
|
||||
}
|
||||
|
||||
//账号变化时
|
||||
function handleUsernameChange(newVal) {
|
||||
getTenantList(newVal);
|
||||
|
||||
Reference in New Issue
Block a user