فهرست منبع

修改文件路由错误

吴sir 3 ماه پیش
والد
کامیت
bb9aa1096f
2فایلهای تغییر یافته به همراه0 افزوده شده و 62 حذف شده
  1. 0 51
      src/store/modules/layoutSetting.js
  2. 0 11
      src/views/login/login-form.vue

+ 0 - 51
src/store/modules/layoutSetting.js

@@ -1,51 +0,0 @@
-import { defineStore } from "pinia";
-import { setLocalStorage, getLocalStorage } from "@/utils";
-
-
-const LayoutDisposition = JSON.parse(localStorage.getItem('LayoutDisposition')) || false
-
-// 语言
-export const layoutSetting = defineStore({
-  id: "layoutSetting",
-  state: () => ({
-    setting: {
-      crumbs: LayoutDisposition.crumbs , //面包屑
-      BreadcrumbIcon: LayoutDisposition.BreadcrumbIcon , // 面包屑图标
-      SidebarLogo: LayoutDisposition.SidebarLogo , // 侧边栏Logo
-      HeadNavigationBar: LayoutDisposition.HeadNavigationBar , // 头部导航栏
-      laoutStyle: LayoutDisposition.laoutStyle?LayoutDisposition.laoutStyle:0
-    },
-  }),
-  getters: {
-    getStore() {
-      return this.setting;
-    },
-  },
-  actions: {
-    // 面包屑
-    handelCrumbs(e) {
-      this.setting.crumbs = e;
-    },
-    // 面包屑图标
-    handelBreadcrumbIcon(e){
-        this.setting.BreadcrumbIcon = e;
-    },
-    // 侧边栏Logo
-    handelSidebarLogo(e){
-        this.setting.SidebarLogo = e;
-    },
-    // 头部导航栏
-    handelHeadNavigationBar(e){
-        this.setting.HeadNavigationBar = e;
-        localStorage.removeItem('RouterTagData')
-    },
-    // 切换布局样式
-    handelLayoutStyle(e){
-        this.setting.laoutStyle = e;
-    },
-    // 本地存储
-    saveLayoutDisposition() {
-      setLocalStorage("LayoutDisposition", this.setting);
-    },
-  },
-});

+ 0 - 11
src/views/login/login-form.vue

@@ -93,17 +93,6 @@ const handleSubmit = async () => {
   })
   await updateRouteByMenu(router, systemStore)
 
-  const settingLayout = localStorage.getItem('LayoutDisposition') || false
-  if (!settingLayout) {
-    const item = {
-      crumbs: false,
-      BreadcrumbIcon: false,
-      SidebarLogo: false,
-      HeadNavigationBar: false,
-      laoutStyle: 0
-    }
-    localStorage.setItem('LayoutDisposition', item)
-  }
 
   router.push({
     path: "/",