wxy 3 tháng trước cách đây
mục cha
commit
a13b6a3c6f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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({