File size: 358 Bytes
3a1d71c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { invoke } from '@tauri-apps/api'
import { ref } from 'vue'
export const tauriConf = ref<{ port: number }>()
export const refreshTauriConf = async () => {
  console.log(import.meta.env);
  
 if (!import.meta.env.TAURI_ARCH) {
    return
 }
  try {
    tauriConf.value = await invoke('get_tauri_conf')
  } catch (error) {
    console.error(error)
  }
}