wxy 3 månader sedan
förälder
incheckning
a13b6a3c6f
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      src/store/modules/layoutSetting.js

+ 1 - 1
src/store/modules/layoutSetting.js

@@ -2,7 +2,7 @@ import { defineStore } from "pinia";
 import { setLocalStorage, getLocalStorage } from "@/utils";
 
 
-const LayoutDisposition = getLocalStorage("LayoutDisposition") || false
+const LayoutDisposition = JSON.parse(localStorage.getItem('LayoutDisposition')) || false
 
 // 语言
 export const layoutSetting = defineStore({