add
This commit is contained in:
@@ -28,7 +28,7 @@ class MyApp extends StatelessWidget {
|
|||||||
'/login': (context) => const LoginPage(),
|
'/login': (context) => const LoginPage(),
|
||||||
'/home': (context) => HomePage(),
|
'/home': (context) => HomePage(),
|
||||||
'/exchange': (context) => ExchangePage(),
|
'/exchange': (context) => ExchangePage(),
|
||||||
'/exchange/add': (context) => AddExchangePage(), // 推荐首选
|
'/exchange/add': (context) => AddExchangePage(),
|
||||||
},
|
},
|
||||||
theme: ThemeData(
|
theme: ThemeData(
|
||||||
// 金融暗夜风格主题配置
|
// 金融暗夜风格主题配置
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import 'package:asset_assistant/utils/host_utils.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:dio/dio.dart';
|
import 'package:dio/dio.dart';
|
||||||
import 'package:shared_preferences/shared_preferences.dart';
|
import 'package:shared_preferences/shared_preferences.dart';
|
||||||
@@ -43,8 +44,7 @@ class _AddExchangePageState extends State<AddExchangePage> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 准备请求数据
|
// 准备请求数据
|
||||||
// const baseUrl = 'https://api.fishestlife.com';
|
final baseUrl = HostUtils().currentHost;
|
||||||
const baseUrl = 'http://localhost:20010';
|
|
||||||
const path = '/exchange/create';
|
const path = '/exchange/create';
|
||||||
final url = '$baseUrl$path';
|
final url = '$baseUrl$path';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:asset_assistant/pages/exchange_page.dart'; // 导入ExchangePage
|
import 'package:asset_assistant/pages/exchange_page.dart';
|
||||||
|
|
||||||
class HomePage extends StatelessWidget {
|
class HomePage extends StatelessWidget {
|
||||||
// 功能列表数据 - 为交易所项添加路由信息
|
// 功能列表数据 - 为交易所项添加路由信息
|
||||||
|
|||||||
Reference in New Issue
Block a user