This commit is contained in:
2026-03-22 15:38:25 +08:00
parent c8c4228446
commit 2610c1cfd2
3 changed files with 9 additions and 4 deletions

View File

@@ -3,7 +3,7 @@ class ApiEndpoints {
ApiEndpoints._();
/// 基础URL
static const String baseUrl = 'http://8.155.172.147:5010';
static const String baseUrl = 'http://localhost:5010';
// ==================== 用户模块 ====================

View File

@@ -68,7 +68,7 @@ class DioClient {
DioClient() {
_dio = Dio(BaseOptions(
baseUrl: 'http://8.155.172.147:5010',
baseUrl: 'http://localhost:5010',
connectTimeout: const Duration(seconds: 30),
receiveTimeout: const Duration(seconds: 30),
headers: {

View File

@@ -3,6 +3,7 @@ import 'package:shadcn_ui/shadcn_ui.dart';
import 'package:provider/provider.dart';
import '../../../providers/auth_provider.dart';
import 'register_page.dart';
class LoginPage extends StatefulWidget {
const LoginPage({super.key});
@@ -148,8 +149,12 @@ class _LoginPageState extends State<LoginPage> {
),
ShadButton.link(
onPressed: () {
// 跳转到注册页面
// context.go('/register');
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => RegisterPage(),
),
);
},
child: const Text('立即注册'),
),