无头模式测试

This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2023-11-22 03:51:37 +08:00
parent 5ab90ea221
commit 7389f6d716
535 changed files with 991 additions and 162534 deletions

View File

@@ -5,6 +5,7 @@ import { EditBox } from 'cc';
import { app } from '../../App';
import { GUI } from '../UIConfig';
import { StorageData, StorageEnum } from '../../consts/GData';
import { Env, EnvCurrent } from '../../Env';
const { ccclass, property } = _decorator;
@ccclass('LoginView')
@@ -20,6 +21,13 @@ export class LoginView extends JNLayerBase {
onJNLoad(resolve?: (token:string) => void): void {
super.onJNLoad();
this.resolve = resolve;
//如果是服务器则取Windows账号密码
if(EnvCurrent == Env.Server){
this.account.string = window['GUser'];
this.password.string = window['GPassworld'];
this.onClickLogin();
}
}