mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-23 23:19:19 +08:00
remove: 移除vben多余配置
This commit is contained in:
@@ -14,19 +14,6 @@
|
||||
<!-- 由 vite 注入 VITE_APP_TITLE 变量,在 .env 文件内配置 -->
|
||||
<title><%= VITE_APP_TITLE %></title>
|
||||
<link rel="icon" href="/cd-logo.png" type="image/png" />
|
||||
<script>
|
||||
// 生产环境下注入百度统计
|
||||
if (window._VBEN_ADMIN_PRO_APP_CONF_) {
|
||||
var _hmt = _hmt || [];
|
||||
(function () {
|
||||
var hm = document.createElement('script');
|
||||
hm.src =
|
||||
'https://hm.baidu.com/hm.js?b38e689f40558f20a9a686d7f6f33edf';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(hm, s);
|
||||
})();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
@@ -13,6 +13,7 @@ const logo = computed(() => preferences.logo.source);
|
||||
<template>
|
||||
<AuthPageLayout
|
||||
:app-name="appName"
|
||||
:copyright="false"
|
||||
:logo="logo"
|
||||
:page-description="$t('authentication.pageDesc')"
|
||||
:page-title="$t('authentication.pageTitle')"
|
||||
|
||||
@@ -12,6 +12,12 @@ export const overridesPreferences = defineOverridesPreferences({
|
||||
accessMode: 'backend', // 启用后端访问控制模式
|
||||
enableRefreshToken: true, // 启用token自动刷新功能 🔄
|
||||
defaultHomePath: '/welcome', // 设置默认首页路由
|
||||
defaultAvatar: '/cd-logo.png',
|
||||
},
|
||||
copyright: {
|
||||
enable: false,
|
||||
companyName: '',
|
||||
companySiteLink: '',
|
||||
},
|
||||
navigation: {
|
||||
accordion: false, // 关闭手风琴模式,允许多个菜单同时展开
|
||||
@@ -20,6 +26,7 @@ export const overridesPreferences = defineOverridesPreferences({
|
||||
mode: 'light',
|
||||
},
|
||||
transition: {
|
||||
enable: false,
|
||||
loading: false,
|
||||
progress: false,
|
||||
},
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
<script lang="ts" setup>
|
||||
import { About } from '@vben/common-ui';
|
||||
import { Page } from '@vben/common-ui';
|
||||
import { preferences } from '@vben/preferences';
|
||||
|
||||
defineOptions({ name: 'About' });
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<About />
|
||||
<Page title="关于">
|
||||
<p class="text-foreground text-sm">{{ preferences.app.name }}</p>
|
||||
</Page>
|
||||
</template>
|
||||
|
||||
@@ -47,6 +47,8 @@ const formSchema = computed((): VbenFormSchema[] => {
|
||||
<AuthenticationLogin
|
||||
:form-schema="formSchema"
|
||||
:loading="authStore.loginLoading"
|
||||
:show-forget-password="false"
|
||||
:show-register="false"
|
||||
@submit="authStore.authLogin"
|
||||
/>
|
||||
</template>
|
||||
|
||||
@@ -5,6 +5,7 @@ export default defineConfig(async () => {
|
||||
application: {
|
||||
// 设置API URL
|
||||
apiURL: '/api',
|
||||
printInfoMap: {},
|
||||
},
|
||||
vite: {
|
||||
server: {
|
||||
|
||||
Reference in New Issue
Block a user