add admin conf

This commit is contained in:
ljw
2024-11-11 22:26:55 +08:00
parent a1ed3df60f
commit 4d1da2e89e
6 changed files with 48 additions and 23 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import { ref } from 'vue'
import { config } from '@/api/rustdesk'
import { server } from '@/api/config'
import Websock from '@/utils/webclient/websock'
import * as rendezvous from '@/utils/webclient/rendezvous'
import * as message from '@/utils/webclient/message'
@@ -13,7 +13,7 @@ export const toWebClientLink = (row) => {
export function loadRustdeskConfig () {
const rustdeskConfig = ref({})
const fetchConfig = async () => {
const res = await config().catch(_ => false)
const res = await server().catch(_ => false)
if (res) {
rustdeskConfig.value = res.data
localStorage.setItem('custom-rendezvous-server', res.data.id_server)