diff --git a/apps/web-antd/src/layouts/basic.vue b/apps/web-antd/src/layouts/basic.vue
index 2777f4a..4128dd1 100644
--- a/apps/web-antd/src/layouts/basic.vue
+++ b/apps/web-antd/src/layouts/basic.vue
@@ -4,14 +4,8 @@ import type { NotificationItem } from '@vben/layouts';
import { computed, onMounted, ref, watch } from 'vue';
import { AuthenticationLoginExpiredModal, useVbenModal } from '@vben/common-ui';
-import { VBEN_DOC_URL, VBEN_GITHUB_URL } from '@vben/constants';
import { useWatermark } from '@vben/hooks';
-import {
- AntdProfileOutlined,
- BookOpenText,
- CircleHelp,
- MdiGithub,
-} from '@vben/icons';
+import { AntdProfileOutlined } from '@vben/icons';
import {
BasicLayout,
LockScreen,
@@ -20,7 +14,7 @@ import {
} from '@vben/layouts';
import { preferences } from '@vben/preferences';
import { useAccessStore, useUserStore } from '@vben/stores';
-import { formatDateTime, openWindow } from '@vben/utils';
+import { formatDateTime } from '@vben/utils';
import {
getUnreadNotifyMessageCount,
@@ -57,31 +51,31 @@ const menus = computed(() => [
icon: AntdProfileOutlined,
text: $t('ui.widgets.profile'),
},
- {
- handler: () => {
- openWindow(VBEN_DOC_URL, {
- target: '_blank',
- });
- },
- icon: BookOpenText,
- text: $t('ui.widgets.document'),
- },
- {
- handler: () => {
- openWindow(VBEN_GITHUB_URL, {
- target: '_blank',
- });
- },
- icon: MdiGithub,
- text: 'GitHub',
- },
- {
- handler: () => {
- helpModalApi.open();
- },
- icon: CircleHelp,
- text: $t('ui.widgets.qa'),
- },
+ // {
+ // handler: () => {
+ // openWindow(VBEN_DOC_URL, {
+ // target: '_blank',
+ // });
+ // },
+ // icon: BookOpenText,
+ // text: $t('ui.widgets.document'),
+ // },
+ // {
+ // handler: () => {
+ // openWindow(VBEN_GITHUB_URL, {
+ // target: '_blank',
+ // });
+ // },
+ // icon: MdiGithub,
+ // text: 'GitHub',
+ // },
+ // {
+ // handler: () => {
+ // helpModalApi.open();
+ // },
+ // icon: CircleHelp,
+ // text: $t('ui.widgets.qa'),
+ // },
]);
const avatar = computed(() => {
diff --git a/apps/web-antd/src/locales/langs/zh-CN/page.json b/apps/web-antd/src/locales/langs/zh-CN/page.json
index eefc492..41d8fec 100644
--- a/apps/web-antd/src/locales/langs/zh-CN/page.json
+++ b/apps/web-antd/src/locales/langs/zh-CN/page.json
@@ -7,7 +7,7 @@
"forgetPassword": "忘记密码"
},
"dashboard": {
- "title": "概览",
+ "title": "首页",
"analytics": "分析页",
"workspace": "工作台"
},
diff --git a/apps/web-antd/src/preferences.ts b/apps/web-antd/src/preferences.ts
index 3556ad1..a5fb24c 100644
--- a/apps/web-antd/src/preferences.ts
+++ b/apps/web-antd/src/preferences.ts
@@ -12,11 +12,16 @@ export const overridesPreferences = defineOverridesPreferences({
accessMode: 'backend',
name: import.meta.env.VITE_APP_TITLE,
enableRefreshToken: true,
+ defaultHomePath: '/dashboard',
},
logo: {
// source: 'https://www.agrandtech.com.cn/favicon.ico',
source: '/agt.png',
},
+ theme: {
+ /** 默认主题 */
+ mode: 'light',
+ },
footer: {
/** 默认关闭 footer 页脚,因为有一定遮挡 */
enable: false,
diff --git a/apps/web-antd/src/router/routes/modules/dashboard.ts b/apps/web-antd/src/router/routes/modules/dashboard.ts
index 2cccc81..0ed61b2 100644
--- a/apps/web-antd/src/router/routes/modules/dashboard.ts
+++ b/apps/web-antd/src/router/routes/modules/dashboard.ts
@@ -3,35 +3,45 @@ import type { RouteRecordRaw } from 'vue-router';
import { $t } from '#/locales';
const routes: RouteRecordRaw[] = [
+ // {
+ // meta: {
+ // icon: 'lucide:layout-dashboard',
+ // order: -1,
+ // title: $t('page.dashboard.title'),
+ // },
+ // name: 'Dashboard2',
+ // path: '/dashboard2',
+ // children: [
+ // {
+ // name: 'Workspace',
+ // path: '/workspace',
+ // component: () => import('#/views/dashboard/workspace/index.vue'),
+ // meta: {
+ // icon: 'carbon:workspace',
+ // title: $t('page.dashboard.workspace'),
+ // },
+ // },
+ // {
+ // name: 'Analytics',
+ // path: '/analytics',
+ // component: () => import('#/views/dashboard/analytics/index.vue'),
+ // meta: {
+ // affixTab: true,
+ // icon: 'lucide:area-chart',
+ // title: $t('page.dashboard.analytics'),
+ // },
+ // },
+ // ],
+ // },
{
- meta: {
- icon: 'lucide:layout-dashboard',
- order: -1,
- title: $t('page.dashboard.title'),
- },
name: 'Dashboard',
path: '/dashboard',
- children: [
- {
- name: 'Workspace',
- path: '/workspace',
- component: () => import('#/views/dashboard/workspace/index.vue'),
- meta: {
- icon: 'carbon:workspace',
- title: $t('page.dashboard.workspace'),
- },
- },
- {
- name: 'Analytics',
- path: '/analytics',
- component: () => import('#/views/dashboard/analytics/index.vue'),
- meta: {
- affixTab: true,
- icon: 'lucide:area-chart',
- title: $t('page.dashboard.analytics'),
- },
- },
- ],
+ component: () => import('#/views/dashboard/index.vue'),
+ meta: {
+ icon: 'ion:home-outline',
+ title: $t('page.dashboard.title'),
+ order: -1,
+ },
},
{
name: 'Profile',
diff --git a/apps/web-antd/src/views/dashboard/analytics/analytics-customer-type.vue b/apps/web-antd/src/views/dashboard/analytics/analytics-customer-type.vue
new file mode 100644
index 0000000..20212af
--- /dev/null
+++ b/apps/web-antd/src/views/dashboard/analytics/analytics-customer-type.vue
@@ -0,0 +1,65 @@
+
+
+
+
+
diff --git a/apps/web-antd/src/views/dashboard/index.vue b/apps/web-antd/src/views/dashboard/index.vue
new file mode 100644
index 0000000..9691035
--- /dev/null
+++ b/apps/web-antd/src/views/dashboard/index.vue
@@ -0,0 +1,346 @@
+
+
+
+
+
+
+ 早安, {{ userStore.userInfo?.nickname }}, 开始您一天的工作吧!
+
+ 今日晴,20℃ - 32℃!
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+