Commit d820d76d authored by 张伯涛's avatar 张伯涛

默认机器人UI风格

parent 61d3d88a
......@@ -55,7 +55,7 @@ export default {
},
watch: {
visible(val) {
this.form.theme = localStorage.getItem('theme') || '1'
this.form.theme = localStorage.getItem('theme') || '4'
console.log('this.form.theme', this.form.theme)
}
},
......
......@@ -36,7 +36,9 @@ export default {
// 根据选择的风格切换图标
// eslint-disable-next-line vue/return-in-computed-property
logo() {
if (!localStorage.getItem('theme') || localStorage.getItem('theme') === '1') {
if(!localStorage.getItem('theme')){
return require('@/assets/themeDImage/menuLogo.png')
}else if (localStorage.getItem('theme') === '1') {
return require('@/assets/image/denglu_logo@2x.png')
} else if (localStorage.getItem('theme') === '2') {
return require('@/assets/themeBImage/menuLogo.png')
......
......@@ -51,7 +51,9 @@ export default {
// eslint-disable-next-line vue/return-in-computed-property
variables() {
// 根据选择的风格变量决定引用哪套variables变量文件
if (!localStorage.getItem('theme') || localStorage.getItem('theme') === '1') {
if(!localStorage.getItem('theme')){
return themeDvariables
}else if ( localStorage.getItem('theme') === '1') {
return variables
} else if (localStorage.getItem('theme') === '2') {
return themeBvariables
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment