feat(admin): strip SPA ops menus; redirect old hashes to native WP (Phase 4)

SPA shop/forum/payment/users sections now keep configuration pages only.
Operational workbenches were removed from the sidebar and loaders; legacy
hash routes open NativeOpsRedirect into the matching WP native admin page.
Admin SPA production build refreshed accordingly.
This commit is contained in:
2026-07-15 02:10:05 +08:00
parent bf061f43ee
commit a3dde3874a
85 changed files with 15987 additions and 249 deletions
@@ -0,0 +1,57 @@
<template>
<div class="aks-native-ops-redirect">
<h2>{{ title }}</h2>
<p class="desc">
此运营功能已迁移到 WordPress 原生后台侧栏(对齐 zibll)。正在跳转…
</p>
<p v-if="nativeUrl">
<a class="button button-primary" :href="nativeUrl">立即打开原生页面</a>
</p>
<p v-else class="desc">未配置原生跳转地址,请从左侧 WP 菜单进入。</p>
</div>
</template>
<script setup>
import { computed, onMounted } from 'vue'
import { useRoute } from 'vue-router'
const route = useRoute()
const title = computed(() => route.meta?.title || '运营功能已迁移')
const nativeUrl = computed(() => {
const path = route.meta?.nativeAdminPath || ''
if (!path) return ''
const base = (window.aksrtAdminData?.adminUrl || '/wp-admin/').replace(/\/?$/, '/')
return base + path.replace(/^\//, '')
})
onMounted(() => {
if (nativeUrl.value) {
window.location.replace(nativeUrl.value)
}
})
</script>
<style scoped>
.aks-native-ops-redirect {
max-width: 640px;
margin: 48px auto;
padding: 24px;
background: var(--aks-surface, #fff);
border-radius: 8px;
border: 1px solid var(--aks-border, #e5e7eb);
}
.desc {
color: #646970;
line-height: 1.6;
}
.button {
display: inline-block;
margin-top: 8px;
padding: 8px 14px;
background: #2271b1;
color: #fff;
border-radius: 4px;
text-decoration: none;
}
</style>