Commit 2a9eef66 authored by 张伯涛's avatar 张伯涛

手动设置皮肤变量,选择项目样式风格bug修改

parent b8734a8f
...@@ -10,6 +10,10 @@ import './plugins' ...@@ -10,6 +10,10 @@ import './plugins'
import xhr from '@/utils/request' import xhr from '@/utils/request'
import '@/styles/index.scss' // global css import '@/styles/index.scss' // global css
// 样式文件切换,通过localStorage存储的theme变量决定用哪套样式文件 // 样式文件切换,通过localStorage存储的theme变量决定用哪套样式文件
// 手动设置皮肤变量,选择项目样式风格
const themeVal = '7'
window.localStorage.setItem('theme', themeVal)
const storageValue = window.localStorage.getItem('theme') // 获取 localStorage 中的值 const storageValue = window.localStorage.getItem('theme') // 获取 localStorage 中的值
if (!storageValue || storageValue === '1') { if (!storageValue || storageValue === '1') {
import('@/styles/themeA/index.scss') import('@/styles/themeA/index.scss')
......
...@@ -165,16 +165,10 @@ export default { ...@@ -165,16 +165,10 @@ export default {
} }
}, },
created() { created() {
this.setThemeType() // 手动设置皮肤变量,选择项目样式风格
this.getCode() this.getCode()
this.getCookie() this.getCookie()
}, },
methods: { methods: {
/** 手动设置皮肤变量,选择项目样式风格*/
setThemeType() {
const themeVal = '7'
localStorage.setItem('theme', themeVal)
},
goDetail(path) { goDetail(path) {
this.$router.push({ this.$router.push({
path: path, path: path,
......
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