Skip to content

Commit

Permalink
[*] 空信息展示
Browse files Browse the repository at this point in the history
  • Loading branch information
Muska-Ami committed Nov 28, 2024
1 parent 72a84e6 commit a433cd5
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 18 deletions.
5 changes: 1 addition & 4 deletions src/components/UserInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,7 @@ async function sendChangeEmailCode() {
ldb.start()
let rs
try {
rs = await api.v2.email.email(
userData.getters.get_username,
tEmail.value.email
)
rs = await api.v2.email.email(userData.getters.get_username, tEmail.value.email)
} catch (e) {
logger.error(e)
message.error('请求邮件验证码失败: ' + e)
Expand Down
5 changes: 1 addition & 4 deletions src/views/DashboardView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,7 @@
<n-card title="使用方法">
<n-space vertical>
<n-steps vertical :current="4">
<n-step
title="创建隧道"
description="点击隧道操作中的创建隧道,填写相应信息创建"
/>
<n-step title="创建隧道" description="点击隧道操作中的创建隧道,填写相应信息创建" />
<n-step title="软件下载" description="点击软件下载,下载软件" />
<n-step title="启动隧道" description="启动对应的隧道" />
<n-step title="开始使用" description="好了,开始享受吧" />
Expand Down
5 changes: 3 additions & 2 deletions src/views/IcpCheckView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@
</n-card>
</n-grid-item>
<n-grid-item span="1">
<n-h3> 已登记的域名 </n-h3>
<n-spin :show="icpListLoading">
<n-list bordered v-show="showList">
<template #header> 已登记的域名 </template>
<n-empty v-if="!icpListLoading && icpList.length === 0"></n-empty>
<n-list v-else bordered v-show="showList">
<n-list-item v-for="item in icpList">
<n-thing
:title="item.domain"
Expand Down
5 changes: 3 additions & 2 deletions src/views/games/MinecraftView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
<n-grid-item span="1">
<n-h3>已创建的联机</n-h3>
<n-spin :show="loading">
<n-grid cols="3" item-responsive :x-gap="12" :y-gap="12">
<n-empty v-if="!loading && created.length === 0" description="没有任何数据捏"></n-empty>
<n-grid v-else cols="3" item-responsive :x-gap="12" :y-gap="12">
<n-grid-item v-for="item in created" span="0:3 950:1">
<n-space style="display: block">
<n-card>
Expand Down Expand Up @@ -100,7 +101,7 @@ async function initProxyList() {
value: value.id
})
})
selected.value = proxies[0].id
if (proxies.length !== 0) selected.value = proxies[0].id
} else {
sendErrorMessage(rs.message)
}
Expand Down
4 changes: 1 addition & 3 deletions src/views/other/SoftwareView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@
LoCyan Mirrors 镜像站
</a>
<br />
<a href="https://github.com/Shiroiame-Kusu/Kairo/releases" target="_blank">
GitHub
</a>
<a href="https://github.com/Shiroiame-Kusu/Kairo/releases" target="_blank"> GitHub </a>
</p>
</n-card>
</n-grid-item>
Expand Down
1 change: 0 additions & 1 deletion src/views/proxies/ConfigView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ async function updateValue(value) {
}
if (!rs) return
if (rs.status === 200) {
sendSuccessMessage(rs.message)
code.value = rs.data.config
} else {
sendErrorMessage(rs.message)
Expand Down
8 changes: 6 additions & 2 deletions src/views/proxies/ProxiesView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,11 @@
<n-text type="primary"> 隧道列表</n-text>
</n-h1>
<n-spin :show="loading">
<n-grid cols="4" item-responsive>
<n-empty
v-if="!loading && proxiesList.length === 0"
description="一个隧道都没找到哦~"
></n-empty>
<n-grid v-else cols="4" item-responsive>
<n-gi
v-for="item in proxiesList"
style="margin: 10px"
Expand Down Expand Up @@ -573,7 +577,7 @@ async function initList() {
proxiesList.value = rs2.data.list
loading.value = false
} else if (rs2.status === 404) {
sendErrorMessage('你还没有隧道,先创建一个吧?')
// sendErrorMessage('你还没有隧道,先创建一个吧?')
} else {
sendErrorMessage(rs2.message)
}
Expand Down

0 comments on commit a433cd5

Please sign in to comment.