mirror of
https://github.com/EasyTierMC/ETMC.Web.git
synced 2025-12-07 13:05:49 +08:00
fix?:use [] not {}
This commit is contained in:
@@ -60,7 +60,7 @@ async function fetchUserInfo() {
|
||||
async function fetchNodes() {
|
||||
loadingNodes.value = true
|
||||
try {
|
||||
const {data} = await listNodes()
|
||||
const [data] = await listNodes()
|
||||
nodeList.value = data
|
||||
} catch (e: any) {
|
||||
console.error('获取节点失败:', e)
|
||||
@@ -93,7 +93,7 @@ async function handleToggleNodeStatus(node: any) {
|
||||
async function fetchApiKeys() {
|
||||
loadingApiKeys.value = true
|
||||
try {
|
||||
const {data} = await listApiKeys()
|
||||
const [data] = await listApiKeys()
|
||||
|
||||
apiKeys.value = data
|
||||
} catch (e: any) {
|
||||
@@ -140,7 +140,7 @@ async function fetchAdmins() {
|
||||
if (!isAdmin.value) return
|
||||
loadingAdmins.value = true
|
||||
try {
|
||||
const { data } = await listAdmins()
|
||||
const [ data ] = await listAdmins()
|
||||
|
||||
userList.value = data
|
||||
} catch (e: any) {
|
||||
|
||||
Reference in New Issue
Block a user