|
@@ -287,6 +287,12 @@ export default {
|
|
|
this.showStyle = !this.showStyle;
|
|
|
// 改变颜色风格
|
|
|
bus.$emit("changeStyleColor", this.showStyle);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 皮肤模式切换后,存储用户名,皮肤模式
|
|
|
+ */
|
|
|
+ const newV = this.showStyle ? 'dark':'light';
|
|
|
+ localStorage.setItem(`${this.userInfo.username}__skinMode`, newV)
|
|
|
},
|
|
|
},
|
|
|
};
|