feat(apply): 深链 from 参数解析 + 顶栏「返回门户」(T4)——site.ts 新增 resolveFrom(仅 http/https 且域名属本部署可信域,防伪协议/外域注入;session 级内存不落 localStorage),Apply.load 在 resolveSite 后调用,App.vue nav 按需渲染返回门户链接(nav 为主色底 header,白字+分隔线与既有风格一致)
This commit is contained in:
@@ -12,9 +12,12 @@ import { onMounted, ref } from "vue";
|
||||
import { baseApi } from "@/api/module/base";
|
||||
import config from "@/assets/config/host.config";
|
||||
import { applyTheme, resolveTheme, type ThemeManifest } from "@/utils/theme";
|
||||
import { useSite } from "@/utils/site";
|
||||
|
||||
const userName = ref("");
|
||||
const theme = ref<ThemeManifest>(resolveTheme(null));
|
||||
// CMS 指南页来路(T4 回跳闭环):仅 /#/apply 深链带合法 from 参数时非空
|
||||
const { portalFrom } = useSite();
|
||||
|
||||
onMounted(async () => {
|
||||
// 皮肤先应用(首屏观感),再拉用户信息——用户信息失败不影响办理页面使用
|
||||
@@ -41,6 +44,7 @@ onMounted(async () => {
|
||||
<nav class="sh-nav">
|
||||
<router-link to="/hall">办事大厅</router-link>
|
||||
<router-link to="/my">我的办件</router-link>
|
||||
<a v-if="portalFrom" :href="portalFrom" class="sh-back-portal">返回门户</a>
|
||||
</nav>
|
||||
<span class="sh-user" v-if="userName">{{ userName }}</span>
|
||||
</header>
|
||||
|
||||
Reference in New Issue
Block a user