优化使用体验

This commit is contained in:
jyuesong
2022-06-02 08:37:54 +08:00
parent 817ad978e2
commit c7824c920b
6 changed files with 175 additions and 126 deletions

View File

@@ -8,7 +8,7 @@ class TokenInterceptor extends Interceptor {
@override
void onRequest(RequestOptions options, RequestInterceptorHandler handler) {
options.headers["User-Agent"] =
"Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1";
"qinglong_client";
options.headers["Content-Type"] = "application/json;charset=UTF-8";

View File

@@ -95,7 +95,7 @@ class UserInfoViewModel {
historyAccounts.insert(0, UserInfoBean(userName: _userName, password: _passWord, useSecretLogined: _useSecertLogined, host: _host));
while (historyAccounts.length > 5) {
while (historyAccounts.length > 3) {
historyAccounts.removeLast();
}