提交 a5643ca2 编写于 作者: Shine-zwj's avatar Shine-zwj

主题设置

上级 1847191c
...@@ -2,6 +2,10 @@ ...@@ -2,6 +2,10 @@
../@MACRO/LAYOUTPANEL_VIEW.template.ftl ../@MACRO/LAYOUTPANEL_VIEW.template.ftl
</#ibizinclude> </#ibizinclude>
<#assign import_block>
import { appConfig } from '@/config/appConfig';
</#assign>
<#ibizinclude> <#ibizinclude>
../@MACRO/VIEW_HEADER-BASE.vue.ftl ../@MACRO/VIEW_HEADER-BASE.vue.ftl
</#ibizinclude> </#ibizinclude>
...@@ -77,7 +81,7 @@ ...@@ -77,7 +81,7 @@
} else if (localStorage.getItem('theme-class')) { } else if (localStorage.getItem('theme-class')) {
return localStorage.getItem('theme-class'); return localStorage.getItem('theme-class');
} else { } else {
return 'app-default-theme'; return appConfig.defaultTheme;
} }
} }
...@@ -93,7 +97,7 @@ ...@@ -93,7 +97,7 @@
} else if (localStorage.getItem('font-family')) { } else if (localStorage.getItem('font-family')) {
return localStorage.getItem('font-family'); return localStorage.getItem('font-family');
} else { } else {
return 'Microsoft YaHei'; return appConfig.defaultFont;
} }
} }
...@@ -170,12 +174,8 @@ ...@@ -170,12 +174,8 @@
* @type {string[]} * @type {string[]}
* @memberof ${srfclassname('${view.name}')}Base * @memberof ${srfclassname('${view.name}')}Base
*/ */
get themeClasses(): string[] { get themeClasses(): string {
return [ return this.selectTheme;
Object.is(this.selectTheme, 'app_theme_blue') ? 'app_theme_blue' : '',
Object.is(this.selectTheme, 'app-default-theme') ? 'app-default-theme' : '',
Object.is(this.selectTheme, 'app_theme_darkblue') ? 'app_theme_darkblue' : '',
];
} }
/** /**
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册