mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
无头模式测试
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user