|
@@ -3,7 +3,7 @@ mod models;
|
|
|
mod service;
|
|
|
mod utils;
|
|
|
|
|
|
-use commands::{category, commodity, table};
|
|
|
+use commands::{category, commodity, material, order, table};
|
|
|
use sea_orm::{ConnectionTrait, DatabaseConnection};
|
|
|
use std::fs::File;
|
|
|
use std::sync::Arc;
|
|
@@ -44,9 +44,11 @@ pub fn run() {
|
|
|
})
|
|
|
})
|
|
|
.invoke_handler(tauri::generate_handler![
|
|
|
- table::get_table_area,
|
|
|
- category::get_category,
|
|
|
- commodity::get_commodity
|
|
|
+ table::area,
|
|
|
+ category::category,
|
|
|
+ commodity::commodity,
|
|
|
+ order::order,
|
|
|
+ material::material
|
|
|
])
|
|
|
.plugin(tauri_plugin_os::init())
|
|
|
.plugin(tauri_plugin_single_instance::init(|app, _args, _cwd| {
|