()
| 402 | return this._get<string>("language", { |
| 403 | // 取预设值时呼叫 asyncValue 进行异步取值 |
| 404 | asyncValue() { |
| 405 | return matchLanguage().then((matchLanguageRes) => { |
| 406 | return matchLanguageRes || chrome.i18n.getUILanguage(); |
| 407 | }); |
| 408 | }, |
| 409 | }).then((lng) => { |
| 410 | // 设置进入缓存 |
| 411 | if (globalThis.localStorage) { |
no test coverage detected