This commit is contained in:
jundayw 2023-10-25 20:17:47 +08:00
parent 850cdd11a1
commit d0a94d85bf
4 changed files with 9 additions and 14 deletions

View File

@ -1,12 +1,4 @@
// 自定义配置,参考 ./default/setting.config.js需要自定义的属性在这里配置即可
module.exports = {
theme: {
color: '#13c2c2',
mode: 'dark',
},
multiPage: true,
animate: {
name: 'lightSpeed',
direction: 'left'
}
}

View File

@ -8,8 +8,8 @@ module.exports = {
warning: '#faad14', //警告色
error: '#f5222f', //错误色
},
layout: 'side', //导航布局,可选 side 和 head分别为侧边导航和顶部导航
fixedHeader: false, //固定头部状态栏true:固定false:不固定
layout: 'mix', //导航布局,可选 side 和 head分别为侧边导航和顶部导航
fixedHeader: true, //固定头部状态栏true:固定false:不固定
fixedSideBar: true, //固定侧边栏true:固定false:不固定
fixedTabs: false, //固定页签头true:固定false:不固定
pageWidth: 'fixed', //内容区域宽度fixed:固定宽度fluid:流式宽度
@ -24,7 +24,7 @@ module.exports = {
filterMenu: true, //根据权限过滤菜单true:过滤false:不过滤
animate: { //动画设置
disabled: false, //禁用动画true:禁用false:启用
name: 'bounce', //动画效果,支持的动画效果可参考 ./animate.config.js
name: 'slide', //动画效果,支持的动画效果可参考 ./animate.config.js
direction: 'left' //动画方向,切换页面时动画的方向,参考 ./animate.config.js
},
footerLinks: [ //页面底部链接,{link: '链接地址', name: '名称/显示文字', icon: '图标,支持 ant design vue 图标库'}

View File

@ -6,7 +6,7 @@
</a>
</div>
<div class="copyright">
Copyright<a-icon type="copyright" />{{copyright}}
Copyright &copy; {{copyright}}
</div>
</div>
</template>
@ -33,7 +33,7 @@ export default {
.links{
margin-bottom: 8px;
a:not(:last-child) {
margin-right: 40px;
margin:auto 5px;
}
a{
color: @text-color-second;

View File

@ -1,6 +1,7 @@
import Vue from 'vue'
import Router from 'vue-router'
import {formatRoutes} from '@/utils/routerUtil'
import deepmerge from "deepmerge";
Vue.use(Router)
@ -26,6 +27,8 @@ const loginIgnore = {
function initRouter(isAsync) {
const options = isAsync ? require('./async/config.async').default : require('./config').default
formatRoutes(options.routes)
return new Router(options)
return new Router(deepmerge(options, {
mode: 'history',
}));
}
export {loginIgnore, initRouter}