feat: 前端支持平台子路径,托管时从平台登录进入

This commit is contained in:
2026-11-03 12:30:24 +08:00
parent c38e649904
commit 5d4b86c558
17 changed files with 271 additions and 53 deletions
+24
View File
@@ -0,0 +1,24 @@
<script setup lang="ts">
import { NButton } from "naive-ui";
import { platformHome } from "../../shared/base";
import { goPlatformLogin } from "../../shared/platform";
import ThemeButton from "../../shell/ThemeButton.vue";
</script>
<template>
<div class="gate">
<ThemeButton placement="left" />
<section class="gate-card" aria-labelledby="denied-title">
<div class="gate-brand">
<div class="brand-mark" aria-hidden="true">D</div>
<h1>DecomEval</h1>
</div>
<h2 id="denied-title" class="gate-title">无权使用</h2>
<p class="gate-text">当前平台账号没有使用 DecomEval 的权限。请联系平台管理员开通,或换一个有权限的账号登录。</p>
<div class="gate-actions">
<n-button @click="goPlatformLogin()">重新登录</n-button>
<n-button type="primary" tag="a" :href="platformHome">返回平台</n-button>
</div>
</section>
</div>
</template>