gy-webcode2 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -72,7 +72,6 @@
72
72
  // value:"lv"
73
73
  // },
74
74
  ],
75
- themeActive:'default',
76
75
 
77
76
  themeColorList:[
78
77
  {
@@ -124,8 +123,6 @@
124
123
  color:"#722ed1"
125
124
  },
126
125
  ],
127
- themeColorActrive:"lan",
128
-
129
126
  }
130
127
  },
131
128
  computed:{
@@ -139,9 +136,11 @@
139
136
  methods:{
140
137
  changeTheme(value){
141
138
  this.$store.state.themeName = value;
139
+ window.document.body.setAttribute('data-theme', value)
142
140
  },
143
141
  changeThemeColor(value){
144
142
  this.$store.state.themeColor = value;
143
+ window.document.body.setAttribute('data-theme-color', value)
145
144
  }
146
145
  }
147
146
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gy-webcode2",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "gy前端公共代码",
5
5
  "main": "index.js",
6
6
  "scripts": {