Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0ec283a89e |
@@ -4,7 +4,7 @@ import { LOGIN_TOKEN } from '../../res-native/network/HttpRequest';
|
||||
import { Tools } from '../../res-native/tools/Tools';
|
||||
import { app } from '../../app/app';
|
||||
import { USERDATA } from '../../res-native/data/UserData';
|
||||
import { LANG_SET, LANG_STRING, LangSet } from '../../res-native/setting/LangSet';
|
||||
import { LANG_SET, LANG_STRING, LangSet, LangType } from '../../res-native/setting/LangSet';
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@ccclass('AppInit')
|
||||
@@ -85,7 +85,7 @@ export class AppInit extends BaseAppInit {
|
||||
|
||||
LOGIN_TOKEN.setToken(params.token, params.token, "", "")
|
||||
|
||||
LANG_SET.langIndex = LANG_STRING[params.lang as keyof typeof LANG_STRING]
|
||||
LANG_SET.langIndex = LANG_STRING[params.lang as keyof typeof LANG_STRING] || LangType.ZH
|
||||
}
|
||||
|
||||
// BaseAppInit中使用start方法作为初始化入口,如果重写start方法,请注意调用父类方法
|
||||
|
||||
Reference in New Issue
Block a user