diff --git a/src/router/index.js b/src/router/index.js index c41543d..4f80c65 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -11,7 +11,7 @@ const routes = [ path: '/', name: 'MainPage', meta: { - title: '首页', + title: '首页' }, component: () => import('@views/MainView.vue') }, @@ -290,7 +290,7 @@ const router = createRouter({ top: 0, behavior: 'smooth' } - }, + } }) // // 检查本地存储是否存在token,若存在则直接使用 diff --git a/src/views/auth/LoginView.vue b/src/views/auth/LoginView.vue index cae7084..4986a95 100644 --- a/src/views/auth/LoginView.vue +++ b/src/views/auth/LoginView.vue @@ -36,7 +36,12 @@ 登录 - + 没有账户?去注册 diff --git a/src/views/auth/RegisterView.vue b/src/views/auth/RegisterView.vue index 67c4f71..385d4a6 100644 --- a/src/views/auth/RegisterView.vue +++ b/src/views/auth/RegisterView.vue @@ -46,7 +46,12 @@
注册 - + 已有账户?去登录 diff --git a/src/views/auth/ResetPasswordView.vue b/src/views/auth/ResetPasswordView.vue index d1c8536..cf159e2 100644 --- a/src/views/auth/ResetPasswordView.vue +++ b/src/views/auth/ResetPasswordView.vue @@ -24,7 +24,9 @@ 发送邮件 - 登录 + + 登录 +
diff --git a/src/views/proxies/AddView.vue b/src/views/proxies/AddView.vue index 14f8b95..709f8fb 100644 --- a/src/views/proxies/AddView.vue +++ b/src/views/proxies/AddView.vue @@ -9,8 +9,58 @@ +
+ + + 二级认证 + + + 一级认证 + + 其他认证 + + + 大流量 + + + + UDP + + + + 建站 + + +
-

服务器信息:

+

服务器信息

服务器名:{{ serverValue[proxyInfo.nodeId].name }}

服务器介绍:{{ serverValue[proxyInfo.nodeId].description }}

服务器IP:{{ serverValue[proxyInfo.nodeId].ip }}

@@ -93,6 +143,7 @@ import { sendErrorMessage } from '@/utils/message' import { sendErrorDialog, sendSuccessDialog } from '@/utils/dialog' import api from '@/api' import logger from '@/utils/logger' +import { CheckmarkCircle, CloseCircle } from '@vicons/ionicons5' localStorage.setItem('ViewPage', 'add_proxy') // 选择框数据 @@ -105,7 +156,14 @@ const serverValue = ref([ description: '', ip: '', hostname: '', - status: 0 + status: 0, + attribute: { + verificationLevel: -1, + china: false, + allowBigTraffic: false, + allowUdp: false, + allowWebsite: false + } } ]) // 表格数据 @@ -294,7 +352,7 @@ onMounted(async () => { sendErrorMessage('请求节点列表失败: ' + e) } if (!rs) return - var i = 0 + let i = 0 rs.data.list.forEach((s) => { // 默认选择第一个节点 if (i === 0) { @@ -304,9 +362,29 @@ onMounted(async () => { label: s.name, value: s.id } - serverValue.value[s.id] = s + serverValue.value[s.id] = { + id: s.id, + name: s.name, + description: s.description, + ip: s.ip, + hostname: s.hostname, + status: s.status, + attribute: { + verificationLevel: s.attribute.verification_level, + china: s.attribute.china, + allowBigTraffic: s.attribute.allow_big_traffic, + allowUdp: s.attribute.allow_udp, + allowWebsite: s.attribute.allow_website + } + } serverList.value[i] = tmpdict i = i + 1 }) }) + +