feat: update webview URL and frontend dist path
Changed the default webview URL from 'tables.html' to 'index.html' in main.rs to reflect the new entry point. Updated the frontend distribution path in tauri.conf.json from './web/desktop' to './web/html' to better represent the directory structure. These changes align with recent frontend reorganization.
This commit is contained in:
parent
1109bbb3de
commit
b65e7cc88a
3 changed files with 3 additions and 3 deletions
|
|
@ -295,7 +295,7 @@ async fn main() -> std::io::Result<()> {
|
||||||
match WebviewWindowBuilder::new(
|
match WebviewWindowBuilder::new(
|
||||||
app,
|
app,
|
||||||
"main",
|
"main",
|
||||||
tauri::WebviewUrl::App("tables.html".into()),
|
tauri::WebviewUrl::App("index.html".into()),
|
||||||
)
|
)
|
||||||
.build() {
|
.build() {
|
||||||
Ok(_window) => Ok(()),
|
Ok(_window) => Ok(()),
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
"version": "6.0.8",
|
"version": "6.0.8",
|
||||||
"identifier": "br.com.pragmatismo",
|
"identifier": "br.com.pragmatismo",
|
||||||
"build": {
|
"build": {
|
||||||
"frontendDist": "./web/desktop"
|
"frontendDist": "./web/html"
|
||||||
},
|
},
|
||||||
"app": {
|
"app": {
|
||||||
"security": {
|
"security": {
|
||||||
|
|
|
||||||
|
|
@ -1156,7 +1156,7 @@ await stopVoiceSession();
|
||||||
async function startVoiceSession(){
|
async function startVoiceSession(){
|
||||||
if(!currentSessionId)return;
|
if(!currentSessionId)return;
|
||||||
try{
|
try{
|
||||||
const r=await fetch("/api/voice/start",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:currentSessionId,user_id:currentUserId})}),d=await r.json();
|
const r=await fetch("th/voice/start",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:currentSessionId,user_id:currentUserId})}),d=await r.json();
|
||||||
if(d.token){
|
if(d.token){
|
||||||
await connectToVoiceRoom(d.token);
|
await connectToVoiceRoom(d.token);
|
||||||
startVoiceRecording();
|
startVoiceRecording();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue