关于页面增加请求地址显示
This commit is contained in:
parent
f314d6fe05
commit
de887d5c73
@ -8,6 +8,7 @@ import '../../app_settings/app_colors.dart';
|
||||
import '../../tools/commonItem.dart';
|
||||
import '../../tools/titleAppBar.dart';
|
||||
import '../../translations/trans_lib.dart';
|
||||
import '../../network/api.dart';
|
||||
|
||||
class AbountPage extends StatefulWidget {
|
||||
const AbountPage({Key? key}) : super(key: key);
|
||||
@ -40,6 +41,11 @@ class _AbountPageState extends State<AbountPage> {
|
||||
"星锁 1.0.0.07(preRelease-20240118-1)",
|
||||
style: TextStyle(fontSize: 24.sp, color: AppColors.blackColor),
|
||||
),
|
||||
SizedBox(height: 20.h),
|
||||
Text(
|
||||
Api.baseAddress,
|
||||
style: TextStyle(fontSize: 24.sp, color: AppColors.blackColor),
|
||||
),
|
||||
SizedBox(
|
||||
height: 60.h,
|
||||
),
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
abstract class Api {
|
||||
// static String baseAddress = "https://pre.lock.star-lock.cn"; //预发布环境
|
||||
static String baseAddress = "https://dev.lock.star-lock.cn"; //联调环境
|
||||
static String baseAddress = "https://pre.lock.star-lock.cn"; //预发布环境
|
||||
// static String baseAddress = "https://dev.lock.star-lock.cn"; //联调环境
|
||||
// static String baseAddress = "http://192.168.1.15:8022"; //谢总本地
|
||||
// static String baseAddress = "https://ge.lock.star-lock.cn:8100"; //葛工开发环境地址
|
||||
// static String baseAddress = "https://ge.lock.star-lock.cn"; //葛工开发环境地址
|
||||
|
||||
final String baseUrl = "$baseAddress/api";
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user