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