- 平台与代理共用 apps/admin,统一登录 manage/auth/login - 按 userType 展示菜单,修复 token 循环跳转 - 删除独立 apps/agent 前端工程 Co-authored-by: Cursor <cursoragent@cursor.com>
13 lines
303 B
Vue
13 lines
303 B
Vue
<script setup lang="ts">
|
|
import { useAuthStore } from '../stores/auth';
|
|
import AdminDashboard from './Dashboard.vue';
|
|
import AgentDashboard from './agent/Dashboard.vue';
|
|
|
|
const auth = useAuthStore();
|
|
</script>
|
|
|
|
<template>
|
|
<AdminDashboard v-if="auth.isAdmin" />
|
|
<AgentDashboard v-else />
|
|
</template>
|