flat: 一体机兼容,添加全局事件扫码回调等

This commit is contained in:
Apcallover
2025-12-17 15:16:48 +08:00
parent 8ccdcbf93b
commit 3d826aec86
6 changed files with 184 additions and 4 deletions

View File

@@ -368,6 +368,9 @@ function loginbackdoor() {
if (isMachineEnv.value) {
useUserStore().logOutApp();
$api.msg('返回首页');
// setTimeout(() => {
// window.location.reload();
// }, 2000);
return;
}
$api.createRequest('/app/mock/login', {}, 'post').then((resData) => {
@@ -1056,4 +1059,4 @@ function complete() {
color: #FFFFFF;
text-align: center;
line-height: 90rpx
</style>
</style>